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
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
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)) {
> >
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 =
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.
5 matches
Mail list logo