Re: [PHP] Using List() and a do-while loop with MySQL results.

2005-01-21 Thread Phillip S. Baker
Thanks. That was the problem. I switched it to FetchRow and got what I was looking for. -- Blessed Be Phillip "Chris" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Excerpt from http://www.php.net/list > > "*Note: * *list()* only works on numerical arrays and assumes the > numeric

Re: [PHP] Using List() and a do-while loop with MySQL results.

2005-01-21 Thread Chris
Excerpt from http://www.php.net/list "*Note: * *list()* only works on numerical arrays and assumes the numerical indices start at 0." So the best way , in my opinion, to achieve this effect would be: while(list($id, $someinfo) = mysql_fetch_row($result)) { //Some stuff } Chris Phillip

Re: [PHP] Using List() and a do-while loop with MySQL results.

2005-01-21 Thread Jason Wong
On Saturday 22 January 2005 08:11, Jason Wong wrote: > On Saturday 22 January 2005 08:02, Phillip S. Baker wrote: > > I am pulling records from a MySQL DB. > > I am walking through the array using the whole. > > You do realise that doing this ... > > > if ( $row = mysql_fetch_assoc($result)) { > >

Re: [PHP] Using List() and a do-while loop with MySQL results.

2005-01-21 Thread Jason Wong
On Saturday 22 January 2005 08:02, Phillip S. Baker wrote: > I am pulling records from a MySQL DB. > I am walking through the array using the whole. You do realise that doing this ... > if ( $row = mysql_fetch_assoc($result)) { > do{ > //Some stuff >}while ( $row =

[PHP] Using List() and a do-while loop with MySQL results.

2005-01-21 Thread Phillip S. Baker
Greetings all, I am pulling records from a MySQL DB. I am walking through the array using the whole. if ( $row = mysql_fetch_assoc($result)) { do{ //Some stuff }while ( $row = mysql_fetch_assoc($result)); } What I am wondering is if there is something I can do like.