Forum und email

mysql_field_seek

(PHP 4, PHP 5, PECL mysql:1.0)

mysql_field_seek — Set result pointer to a specified field offset

說明

bool mysql_field_seek ( resource $result , int $field_offset )

Seeks to the specified field offset. If the next call to mysql_fetch_field() doesn't include a field offset, the field offset specified in mysql_field_seek() will be returned.

參數

result

回傳類型為 resource 的結果集。該結果集從 mysql_query() 的呼叫中得到。

field_offset

數字形式的欄位偏移量。field_offset 開始於 0。如果 field_offset 不存在,系統會發出 E_WARNING 級別的警告信息。

Return值

如果成功則回傳 TRUE,失敗則回傳 FALSE