Re: sort in while(list($vars) = mysql_fetch_row($result))

From: Date: Wed, 27 Feb 2008 14:23:20 +0000
Subject: Re: sort in while(list($vars) = mysql_fetch_row($result))
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-270285@lists.php.net to get a copy of this message
On Wed, Feb 27, 2008 at 7:58 AM, Verdon Vaillancourt <verdonv@verdon.ca> wrote: [snip!] > Then I pass it through this.. > while(list($id, $text, $url, $m_order) = mysql_fetch_row($result)) { > $out .= "$text - $m_order \n"; > } > echo $out; Is there a reason you're not simplifying this to the following? <? while($row = mysql_fetch_array($result)) { $out .= $row['text']." - ".$row['m_order']."\n"; } -- </Dan> Daniel P. Brown Senior Unix Geek <? while(1) { $me = $mind--; sleep(86400); } ?>

« previous php.general (#270285) next »