Bug #1292: size of fetched array is not correct
| From: | geert at kemuri dot net | Date: | Mon, 05 Apr 1999 17:58:36 +0000 |
| Subject: | Bug #1292: size of fetched array is not correct | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-4928@lists.php.net to get a copy of this message | ||
From: geert@kemuri.net
Operating system: Linux
PHP version: 3.0.7
PHP Bug Type: MySQL related
Bug description: size of fetched array is not correct
$res = mysql_db_query("adatabase","select name from persons");
$row = mysql_fetch_array($res);
$foo = sizeof($row);
$foo is not 1 (number of selected fields), but 2..
I'm having the problem with both stable and dev version of MySQL.
Same problem with mysql_fetch_object, but NOT with mysql_fetch_row.
I thought that these where the same :)
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net