note 31764 deleted from function.sizeof by pollita
| From: | pollita@php.net | Date: | Fri, 06 Jun 2003 23:17:14 +0000 |
| Subject: | note 31764 deleted from function.sizeof by pollita | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-49923@lists.php.net to get a copy of this message | ||
Note Submitter: Ricardo
----
I have the following table:
CREATE TABLE test (
cp1 tinyint(3) unsigned default '0',
cp2 tinyint(3) unsigned default '0',
cp3 tinyint(3) unsigned default '0',
cp4 tinyint(3) unsigned default '0'
) TYPE=MyISAM;
<?php
mysql_connect("localhost","root","");
mysql_select_db("System");
$result = mysql_query("select * from test");
$fetch = mysql_fetch_array($result);
echo(sizeof($fetch));
?>
The output of the function sizeof would have to be 4, however it is returned 8.
This would be a problem of the version of the PHP or the MySQL? I am using MySQL 4.0.12 and PHP
4.3.1.
Sorry for my bad English.
Ricardo Guedes
Brazil - Amazonas - Manaus