This function is broken in 4.4.1 (works fine in 4.3.X).
http://bugs.php.net/35536
![]() | mysql_field_type说明string mysql_field_type ( resource result, int field_offset )mysql_field_type() 和 mysql_field_name() 函数相似。参数完全相同,但返回的是字段类型而不是字段名。字段类型有“int”,“real”,“string”,“blob”以及其它,详见 MySQL 手册。 为向下兼容仍然可以使用 mysql_fieldtype(),但反对这样做。 ![]()
19-Feb-2006 03:52
This function is broken in 4.4.1 (works fine in 4.3.X).
harald at weinreichs dot de
07-Jun-2005 01:02
The note blow seems incomplete/incorrect. For php 4.3 and mysql 4.x the returned values are:
mariob at menta dot net
08-Nov-2003 04:21
For version 4.3.4, types returned are:
swalif_mesa at hotmail dot com
10-Jul-2003 01:38
Hmm for the previous comment, note that SHOW FIELDS is an alias of SHOW COLUMNS. Very useful if you need to search the mysql-documentation. Here is the link anyway...
krang at krang dot org dot uk
10-Mar-2002 10:13
The field type returns what PHP classifies the data found in the field, not how it is stored in the database; use the following example to retrieve the MySQL information about the field....
ludwigp at bigfoot dot com
18-Aug-2000 10:39
Like mysql_fetch_field, this returns the PHP type, not the MySQL type.
| ![]() |