note 53341 deleted from function.mysql-result by aidan

From: Date: Fri, 09 Sep 2005 08:41:41 +0000
Subject: note 53341 deleted from function.mysql-result by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-94950@lists.php.net to get a copy of this message
Note Submitter: shaun at shaund dot com ---- If you are retrieving data from more than one column, then to save time you can use an integer instead of the column in the field part of the argument. For example; $query = "SELECT firstname,surname,age FROM users"; $result = mysql_query($query); $firstname = mysql_result($result,0,0); $surname = mysql_result($result,0,1); $age = mysql_result($result,0,2); Where the number you use is the same order you place them in the query. (Starting from 0)

« previous php.notes (#94950) next »