note 18227 added to function.mysql-result
| From: | bernt at slurpysoft dot com | Date: | Tue, 15 Jan 2002 10:37:06 +0000 |
| Subject: | note 18227 added to function.mysql-result | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-24835@lists.php.net to get a copy of this message | ||
The answer to my own question is:
You must check your result with mysql_num_rows() before you try to use the result at all. I find
that a lot of code out there actually doesn't seem to do this...
If you choose not to first check each sql select query via mysql_num_rows(), you can expect to get
warnings such as this:
Warning: Unable to jump to row 0 on MySQL result ...
--
http://www.php.net/manual/en/function.mysql-result.php
http://master.php.net/manage/user-notes.php?action=edit+18227
http://master.php.net/manage/user-notes.php?action=delete+18227
http://master.php.net/manage/user-notes.php?action=reject+18227