Getting back in the game with error hunting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am wondering if the folks of this great community can help me get
back into this project, by tracking down a parse error in the
following code script.

<?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 

$itemName = null;
$itemPrice = null;
$itemDesc = null;

include("dbfunction.php"); 
$result = mysql_query("select itemName, itemPrice, itemDesc from
tbl_items order by itemName asc"); 
while($row = mysql_fetch_array($result)){

echo "<html>
 <body> 
 <table> 
 <tr> 
 <td width='30%' height='25'><font face='verdana' size='1'
color='black'>" $row['itemName'] "</font></td> 
 <td width='10%' height='25'><font face='verdana' size='1'
color='black'>" $row['itemPrice'] "</font></td> 
 <td width='50%' height='25'><font face='verdana' size='1'
color='black'>" $row['itemDesc'] "</font></td>  
 <td width='10%' height='25'><font face='verdana' size='1'
color='black'><a href='cart.php?action=add_item&id=&qty=1'>Add
Item</a></font></td> 
 </tr> 
 <tr> 
 <td width='100%' colspan='4'><hr size='1' color='red' NOSHADE></td> 
 </tr> 
 <tr>  
 <td width='100%' colspan='4'><font face='verdana' size='1'
color='black'><a href='cart.php'>Your Shopping Cart >></a></font></td> 
 </tr> 
 </table>  
 </body> 
 </html>";
?>


Thanks everyone for you help in advance.

Weeks


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux