Reply to Re: Two for { }

Your name:

Reply:


Posted by Jonathan on 01/22/06 22:36

zek2005 wrote:

<snip>

> while($row = mysql_fetch_array($response))
> {
> for ($i=0;$i=$hasta;$i++)
> {
> for ($j=1;$j=5;$j++)
> {
> echo('<img src="' .$row[url]. '" border="0">');
> }
> echo('<br>');
> }
>
> }
>

You are running the mysql_fetch_array command outside the loop
generating the table.

You might want to take a look at this thread as weel as it is almost the
same problem:
http://groups.google.com/group/comp.lang.php/browse_thread/thread/7f1b231106540c7a/d47992731bf1bcc2?lnk=st&q=Need+help+with+my+code+reading+flat+file+into+HTML+table&rnum=1#d47992731bf1bcc2

Jonathan

[Back to original 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

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