PHP mysql_field_type()函数
Jun 13, 2016 am 11:19 AM
定义和用法
mysql教程_field_type() 函数返回结果集中指定字段的类型。
如果成功,则返回指定字段的类型,如果失败,则返回 false。
语法
mysql_field_type(data,field_offset)参数 描述
data 必需。要使用的数据指针。该数据指针是从 mysql_query() 返回的结果。
field_offset 必需。指示从哪个字段开始返回。0 指示第一个字段。
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);
?>

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

How to fix mysql_native_password not loaded errors on MySQL 8.4
