hye..
i am facing some problem in showing the link in my page. I try to alter but there are still error. So, i would like if someone can please help detect the error. Thanks in advance.
here are my code:
the error are:PHP Code:<?php
$q=$_GET["q"];
include("connection.php");
$sql="SELECT * FROM menu WHERE Category = '".$q."'";
$result = mysql_query($sql);
echo "<table border='1'>
<tr>
<th> Menu </th>
<th> Image </th>
<th> Descriptions </th>
<th> Price (RM) </th>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['Name'] . "</td>";
echo "<td><img src='" . $row['Pic'] . "' height='119' width='148' /></td>";
echo "<td>" . $row['Description'] . "</td>";
echo "<td>" . $row['Price'] . "</td>";
echo "<td><a href="cart.php?action=add&id='".$row['id']."'>Add to cart"</a></td>";
echo "</tr>";
}
echo "</table>";
mysql_close($conn);
?>
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'


Reply With Quote

Bookmarks