Getting One Row of a result

From: Date: Tue, 09 Oct 2001 11:00:00 +0000
Subject: Getting One Row of a result
Groups: php.db 
Request: Send a blank email to php-db+get-13138@lists.php.net to get a copy of this message
Hi, If I know that a query is only going to return one record, what is the mmost efficient way of fetching that result and getting it into a variable? I currently use mysql_fetch_array with list, like: while(list($vars_here) = mysql_fetch_array($result)) { // do stuff } ANy help would be good, Thanks, Jord

« previous php.db (#13138) next »