Or
$row = mysql_fetch_objects()
then use $row->fieldname;
--- Joel Colombo <[EMAIL PROTECTED]> wrote:
> not mysql_fetch_array unless u need those int
> indexes.
> mysql_fetch_assoc is the same thing but does not
> index the integer value,
> just the string field name.
>
> Joel
>
>
> "Leif K-Br
Any performance issues re: using fetch_row vs. fetch_array?
No significant performance issues. If you want to be precise and save a
little overhead, use
$row = mysql_fetch_array ($result, MYSQL_ASSOC);
The returned record will ONLY be returned as an associative array.
Larry
--
PHP General Maili
27;re on a roll.
Any performance issues re: using fetch_row vs. fetch_array?
Thanks again,
--Noah
- Original Message -
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: "CF High" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, March 03, 2003 7:04 PM
y, March 03, 2003 7:04 PM
Subject: Re: [PHP] Yah || Simplest php question in
existence
> Use mysql_fetch_array instead of mysql_fetch_row.
>
> CF High wrote:
>
> >Hey all.
> >
> >Basic question here:
> >
> >How can I refer to a query result set as
not mysql_fetch_array unless u need those int indexes.
mysql_fetch_assoc is the same thing but does not index the integer value,
just the string field name.
Joel
"Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Use mysql_fetch_array instead of mysql_fetch_row.
>
> CF
Use mysql_fetch_array instead of mysql_fetch_row.
CF High wrote:
Hey all.
Basic question here:
How can I refer to a query result set as $result['field_name'] rather than
$result[0]?
So, I'm looking for -- just can't seem to
get the right syntax.
-- clueless
--
--
The above message is
Hey all.
Basic question here:
How can I refer to a query result set as $result['field_name'] rather than
$result[0]?
So, I'm looking for -- just can't seem to
get the right syntax.
-- clueless
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.ne
7 matches
Mail list logo