MySQL

by "Sue Bailey" <sue(at)bartandsue.co.uk>

 Date:  Mon, 22 May 2000 12:15:10 +0100
 To:  <hwg-languages(at)hwg.org>
  todo: View Thread, Original
Hi!

Can somebody have a look at this bit of code for me and see if they can find
the error? It's giving me a parse error in the line
---- </TR>", ---- which looks alright to me! There isn't a semicolon missing
in the previous bit...and I've pretty much copied this code out of
Professional PHP Programming too!! Any suggestions gratefully received.

TIA

Sue

while($row= mysql_fetch_object($result)) {
 printf ("<TR>
  <TD>%s</TD>
  <TD><B>%s</B></TD>
  <TD><B>%s</B></TD>
  <TD>%s</TD>
  <TD><A HREF=\"viewitem.php3?item_no=%s\">View item</A>
  </TR>",
 $row->item_no, $row->designer, $row->short_desc, $row->price,
$row->item_no) ;
}

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA