PHP Mysql_field_type () function _php Tutorial

Source: Internet
Author: User
Tags mysql tutorial
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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.