You are here: Re: [PHP] While and echoing HTML « PHP « IT news, forums, messages
Re: [PHP] While and echoing HTML

Posted by Richard Lynch on 05/10/05 10:47

On Mon, May 9, 2005 10:57 pm, Mark Sargent said:
> Thanx. I saw the extra echo and removed it. Problem with that code,
> though. It displays only the 1st record, repeatedly, causing the browser
> to hang. Can anyone see what is wrong..? Cheers.

Everybody else has told you to move the $i++; inside the while { } loop.

I'm not gonna tell you that.

I'm gonna tell you to get out a pencil and some paper, and "walk" through
your code, writing down exactly what data goes where, in which variables,
on each line.

Make yourself a nice big wide columnar sheet of paper tracking each variable.

LINE | $db | $result | $myrow | $num | $i | $product_type |
1
2
3
4
5 | db-link |
6
7 | | db-result |
..
..
..

You need to do this.

Trust me.

--
Like Music?
http://l-i-e.com/artists.htm

 

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

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