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

Reply via email to