Definition and usage
MySQL Tutorial _field_typeThe () function returns the type of the specified field in the result set.
If successful, returns the type of the specified field, or False if it fails.
Grammar
Mysql_field_type (data,field_offset) parameter description
Data required. The data pointer to use. The data pointer is the result returned from mysql_query ().
Field_offset required. Indicates which field to start returning from. 0 indicates the first field.
mysql_connect ("localhost", "root", "");
mysql_select_db ("MyDatabase");
$query = "SELECT ID as ID, title from mytable ORDER by title";
$result = mysql_query ($query);
$row = Mysql_fetch_row ($result);
Echo Mysql_field_type ($result, 0);
?>
http://www.bkjia.com/PHPjc/445340.html www.bkjia.com true http://www.bkjia.com/PHPjc/445340.html techarticle define and use the MySQL tutorial _field_type () function returns the type of the specified field in the result set. If successful, returns the type of the specified field, or False if it fails. Grammar ...