Re: problem with WHILE loop

From: Date: Mon, 01 Oct 2001 18:17:46 +0000
Subject: Re: problem with WHILE loop
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-12882@lists.php.net to get a copy of this message
Thanks to everyone who replied either here or via e-mail... I got a lot of great suggestions. I ended up solving the WHILE problem by changing this: > $list = mysql_query("select id,title from table1"); > $list_row = mysql_fetch_array($list); > $title = $list_row["title"]; > while($list_row) { > echo("$title <br>\n"); > } to this: $list = mysql_query("select id,title from table1"); $title = $list_row["title"]; while($list_row = mysql_fetch_array($list)) { echo("$title <br>\n"); } Eric Schwinder eric.AT.bergencomputing.DOT.com AT = @ DOT = (well... you know)

« previous php.db (#12882) next »