You are here: Re: php and MySQL error « PHP Programming Language « IT news, forums, messages
Re: php and MySQL error

Posted by Hendri Kurniawan on 03/06/07 00:56

gcox freeuk.com wrote:
> Hello,
>
> I am using php and MySQL and have following as part of the code
>
> while ($row[] = mysql_fetch_array($result)) {
> printf("<td valign='top'><strong>Venue</strong></td><td _
> valign='top'>%s &nbsp;</td></tr>",$row[0]["venue"]);
>
> etc etc
>
> but with more than one hit it does not work, I just get a repeat of
> the first set of data but not using the table formatting.
>
> Ideas please?
>
> Cheers
>
> Geoff

This:
while ($row[] = mysql_fetch_array($result)) {
should be
while($row = mysql_fetch_array($result)) {

This:
valign='top'>%s &nbsp;</td></tr>",$row[0]["venue"]);
Should be:
valign='top'>%s &nbsp;</td></tr>",$row["venue"]);


Hendri

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация