First off, thanks for your responses to my plea for help, I do have a secondary questions, I am now getting parse errors, that I am figuring are being returned from my open tags. I am currently using the <?php tag, when I use <? Things seem to work, but the code isn't run. I have been searching the net trying to find an answer on this one, but I am kind of at a loss. Do you know if this is server configuration issue or something I am coding wronging. Thanks for the help. Weeks From: php-objects@xxxxxxxxxxxxxxx [mailto:php-objects@xxxxxxxxxxxxxxx] On Behalf Of Joe Forsythe Sent: Tuesday, May 29, 2007 6:53 PM To: php-objects@xxxxxxxxxxxxxxx Subject: Re: Getting back in the game with error hunting Replace your WHILE with this, see if it works. 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>"; } On May 29, 2007, at 5:40 PM, teacherweeks wrote: > 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 > > > [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]