Re: While and echoing HTML

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

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux