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" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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 > > > > -- > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php