|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-03-03 02:01 UTC] ste dot sullivan at gmail dot com
Description:
------------
I am using Gentoo
Test script:
---------------
$db=mysql_connect("localhost","user","pass");
$q=mysql_query("SELECT * FROM mytable");
for($i=0;$i<mysql_num_fields($q);$i++) {
$fnames[$i]=mysql_field_name($q,$i);
echo $fnames[$i]." { ".mysql_field_type($q,$i)." ( ".mysql_field_len($q,$i)." ) }\n";
}
Expected result:
----------------
Name { string ( 50 ) }
Phone { string ( 48 ) }
Email { string ( 255 ) }
Actual result:
--------------
Name { string ( 150 ) }
Phone { string ( 48 ) }
Email { string ( 765 ) }
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 23:00:01 2025 UTC |
Ooops - The second expected result should be: Phone { string ( 16 ) } The version information also seems to have been wiped from my original post: PHP: 5.2.12-pl0-gentoo MYSQL Client API: 5.0.84