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

From: Date: Tue, 04 Mar 2003 03:01:20 +0000
Subject: Re: Yarrrrgggghhhhh || Simplest php question in existence........
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-138017@lists.php.net to get a copy of this message
query result like MYSQL ? $x = mysql_result($result, 0, 'field'); another way for mysql_result $r = mysql_fetch_assoc($result); $value = $r['fieldname']; -- OR -- just an array ? $result['fieldname'] = 5; $x = 'fieldname'; echo ($result[$x]); did that help ? i think i am missing the question. "Cf High" <noah@newminddesign.com> wrote in message news:20030304025227.28450.qmail@pb1.pair.com... > 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 > > > > -- > > >

« previous php.general (#138017) next »