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

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

 



On Wed, Feb 27, 2008 at 7:58 AM, Verdon Vaillancourt <verdonv@xxxxxxxxx> 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); } ?>

-- 
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