note 8007 added to mysql_result
| From: | kryptic at se2600 dot org | Date: | Wed, 23 Aug 2000 21:52:51 +0000 |
| Subject: | note 8007 added to mysql_result | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-3044@lists.php.net to get a copy of this message | ||
Calling mysql_result() with a result identifier from a db query will render that result identifier
useless for any subsequent db function calls other than mysql_result()..
Eg.
$result = mysql_db_query();
mysql_result($result, )
now, if you try to call mysql_fetch_row or mysql_fetch_object, it will return an array or object
with the correct number of fields but null/empty values for each..
Eg.
$row = mysql_fetch_row($result);
$row[n] will equal ''
http://www.php.net/manual/function.mysql-result.php