Re: Yarrrrgggghhhhh || Simplest php question in existence........
| From: | Daniel Guerrier | Date: | Wed, 05 Mar 2003 03:31:49 +0000 |
| Subject: | Re: Yarrrrgggghhhhh || Simplest php question in existence........ | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138219@lists.php.net to get a copy of this message | ||
Or
$row = mysql_fetch_objects()
then use $row->fieldname;
--- Joel Colombo <joel@playoutloud.net> 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-Brooks" <eurleif@buyer-brokerage.com> wrote
> in message
> news:3E6417A2.5090208@buyer-brokerage.com...
> > 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 <? echo $result['field_name']
> ?> -- just can't seem
> to
> > >get the right syntax.
> > >
> > >-- clueless
> > >
> > >
> > >
> > >--
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > --
> > The above message is encrypted with double rot13
> encoding. Any
> unauthorized attempt to decrypt it will be
> prosecuted to the full extent of
> the law.
> >
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/