array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.mysql-field-seek.php', 1 => 'mysql_field_seek', ), 'up' => array ( 0 => 'ref.mysql.php', 1 => 'MySQL 函数', ), 'prev' => array ( 0 => 'function.mysql-field-name.php', 1 => 'mysql_field_name', ), 'next' => array ( 0 => 'function.mysql-field-table.php', 1 => 'mysql_field_table', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', 'path' => 'reference/mysql/functions/mysql-field-seek.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5)
mysql_field_seek — 将结果指针设置为指定的字段偏移量
本扩展自 PHP 5.5.0 起已废弃,并在自 PHP 7.0.0 开始被移除。应使用 MySQLi 或 PDO_MySQL 扩展来替换之。参见 MySQL:选择 API 指南来获取更多信息。用以替代本函数的有:
cursor_orientation
和
offset
参数
定位到指定字段偏移量。如果下次调用 mysql_fetch_field() 不包含字段偏移量,则会返回 mysql_field_seek() 中指定字段的偏移量。
result
resource 型的结果集。此结果集来自对 mysql_query() 的调用。
field_offset
数值型字段偏移量。
field_offset
从 0
开始。如果
field_offset
不存在,则会发出一个
E_WARNING
级别的错误