Re: Oddity
| From: | Mike Maltese | Date: | Mon, 04 Feb 2002 16:45:51 +0000 |
| Subject: | Re: Oddity | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-83420@lists.php.net to get a copy of this message | ||
You may want to give mysql_fetch_object a try. I like it because you end up
typing less. You access elements like this: $row->data, instead of
$row['data']. Just my $0.02.
Mike
----- Original Message -----
From: "Chris Boget" <chris@wild.net>
To: <php-general@lists.php.net>
Sent: Monday, February 04, 2002 8:42 AM
Subject: Re: [PHP] Oddity
> > $macroDataArray = mysql_fetch_array( $result );
>
> I'm still curious what is going wrong, but I've found a work arround.
> One of the things I love about PHP is that you learn something new
> just about every day. Instead of fetch_array(), I can use fetch_assoc()
> and it'll do just what I need. :)
>
> Chris
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>