parse error
i alsp keep on gettin the same bloody error.the error comes on the last line. html closing tags. can any1 help
heres ther cose:
<?php
// This page will list all of the items
// from the items table. Each item will have
// a link to add it to the cart
include("db.php");
// Get a connection to the database
$cxn = @ConnectToDb($dbServer, $dbUser, $dbPass, $dbName);
$result = mysql_query("select * from items order by itemName asc");
?>
<?php
while($row = mysql_fetch_array($result))
{
?>
<tr>
<td width="30%" height="25">
<?php echo $row["itemName"]; ?>
</td>
<td width="10%" height="25">
$<?php echo $row["itemPrice"]; ?>
</td>
<td width="50%" height="25">
<?php echo $row["itemDesc"]; ?>
</td>
<td width="10%" height="25">
<a href="cart.php?action=add_item&id=<?php echo $row["itemId"]; ?>&qty=1">Add Item</a>
</td>
</tr>
<tr>
<td width="100%" colspan="4">
</td>
</tr>
}
<tr>
<td width="100%" colspan="4">
<a href="cart.php">Your Shopping Cart >></a>
</td>
</tr>
</table>
</body>
</html>
|