note 73702 added to function.mysqli-fetch-fields
| From: | Jonathan at osu1 dot php dot net | Date: | Wed, 07 Mar 2007 10:12:17 +0000 |
| Subject: | note 73702 added to function.mysqli-fetch-fields | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-124187@lists.php.net to get a copy of this message | ||
The "type" property will return a numerical representation of a field type instead of a
"meaningful" string.
Here is an array that may help you:
<?php
$mysqli_type = array();
$mysqli_type[0] = "DECIMAL";
$mysqli_type[1] = "TINYINT";
$mysqli_type[2] = "SMALLINT";
$mysqli_type[3] = "INTEGER";
$mysqli_type[4] = "FLOAT";
$mysqli_type[5] = "DOUBLE";
$mysqli_type[7] = "TIMESTAMP";
$mysqli_type[8] = "BIGINT";
$mysqli_type[9] = "MEDIUMINT";
$mysqli_type[10] = "DATE";
$mysqli_type[11] = "TIME";
$mysqli_type[12] = "DATETIME";
$mysqli_type[13] = "YEAR";
$mysqli_type[14] = "DATE";
$mysqli_type[16] = "BIT";
$mysqli_type[246] = "DECIMAL";
$mysqli_type[247] = "ENUM";
$mysqli_type[248] = "SET";
$mysqli_type[249] = "TINYBLOB";
$mysqli_type[250] = "MEDIUMBLOB";
$mysqli_type[251] = "LONGBLOB";
$mysqli_type[252] = "BLOB";
$mysqli_type[253] = "VARCHAR";
$mysqli_type[254] = "CHAR";
$mysqli_type[255] = "GEOMETRY";
?>
----
Server IP: 87.238.162.147
Probable Submitter: 80.201.194.133
----
Manual Page -- http://www.php.net/manual/en/function.mysqli-fetch-fields.php
Edit -- https://master.php.net/note/edit/73702
Del: integrated -- https://master.php.net/note/delete/73702/integrated
Del: useless -- https://master.php.net/note/delete/73702/useless
Del: bad code -- https://master.php.net/note/delete/73702/bad+code
Del: spam -- https://master.php.net/note/delete/73702/spam
Del: non-english -- https://master.php.net/note/delete/73702/non-english
Del: in docs -- https://master.php.net/note/delete/73702/in+docs
Del: other reasons-- https://master.php.net/note/delete/73702
Reject -- https://master.php.net/note/reject/73702
Search -- https://master.php.net/manage/user-notes.php