Re: Getting back in the game with error hunting

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

 



In message <f3ia40+25hg@xxxxxxxxxxx>, teacherweeks
<teacherweeks@xxxxxxxxx> writes
>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;
Not sure why you have this here.

>while($row = mysql_fetch_array($result)){
>
>echo "<html>
> <body>
A new <html><body> for each record...?  No... put this outside the loop.

> <td width='30%' height='25'><font face='verdana' size='1'
>color='black'>" $row['itemName'] "</font></td> 

Your "echo" command ends with the " after black'>

You need to concatenate the sections with '.'
like this

 <td width='30%' height='25'><font face='verdana' size='1'
color='black'>".$row['itemName']."</font></td> 

-- 
Pete Clark

Sunny Andalucia
http://www.hotcosta.com/comm_1.htm

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

  Powered by Linux