Re: While and echoing HTML

From: Date: Tue, 10 May 2005 07:47:41 +0000
Subject: Re: While and echoing HTML
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-214819@lists.php.net to get a copy of this message
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

« previous php.general (#214819) next »