PHP mysql_field_type() function_PHP tutorial

WBOY
Release: 2016-07-20 11:02:39
Original
800 people have browsed it

Definition and usage
mysql tutorial_field_type() function returns the type of the specified field in the result set.

If successful, return the type of the specified field, if failed, return false.

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);
?>


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445340.htmlTechArticleDefinition and usage mysql tutorial_field_type () function returns the type of the specified field in the result set. Returns the type of the specified field if successful, or false if failed. Grammar...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!