Code: Select all
<?php
$db=mysql_connect("localhost","Charley") or die ("cant connect");
mysql_select_db("one",$db) or die ("cant change");
$news=mysql_query("select * from review ORDER BY date DESC") or die ("cant get em");
while($rows=mysql_fetch_array($news)){
$date=date("F d, Y H:i ",$rowsї"date"]);
$author = $rowsї"author"];
$email = $rowsї"email"];
$title = $rowsї"title"];
$review = $rowsї"review"];
$image = $rowsї"image"];
$price = $rowsї"price"];
$rating = $rowsї"rating"];
$number = "100%";
$ratings = "$rating.gif";
echo "<html><head><title>$title</title></head><body bgcolor="#FFFFFF" text="#000000"><p><BR></p><p align="center"><font face="Verdana" size="3"><b>$title</b></font></p><table width="92%" border="0" cellspacing="1" height="22" align="center"><tr><td bgcolor="#000000"><table width="100%" border="0" cellspacing="1" cellpadding="1" bgcolor="#FFFFFF"><tr><td><table width="100%" border="0" cellspacing="1"><tr><td width="42%">$image</td><td width="58%">$review</td></tr></table><p>";
echo "</p><table width="26%" border="0" cellspacing="1" cellpadding="0" align="center"><tr><td height="36"><a href="mailto:$email"><img border="0" src="$images/$author.gif" width="130" height="30"> </a></td>";
echo "<td height='36'><div align='right'> <img src='$images/$rating.gif' width='156' height='30'></div></td></tr></table>";
echo "<table width="26%" border="0" cellspacing="1" cellpadding="1" bgcolor="#0000FF" align="center"><tr bgcolor="#0000FF"><td width="17%" height="17"><div align="center"><font face="Verdana" size="1" color="#FFFFFF"><b><b>Price</b></b></font></div></td> </tr><tr bgcolor="#FFFFFF"> <td width="17%"> <div align="center"><font size="2" color="#000000">$price</font></div></td></tr></table>";
echo "<p align="center">$info</p></td></tr></table></td></tr></table></body></html>";
}
?>And everytime I come to run it I get this error:-
Parse error: parse error, unexpected '\"' in c:\apache\htdocs\review.php on line 20
Any ideas?