Re: Yarrrrgggghhhhh || Simplest php question in existence........

From: Date: Tue, 04 Mar 2003 03:11:12 +0000
Subject: Re: Yarrrrgggghhhhh || Simplest php question in existence........
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-138018@lists.php.net to get a copy of this message
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. > > >

« previous php.general (#138018) next »