How does mysql jump to the specified record mysql_field_seek tutorial. Mysql_field_seek is used in the record set returned by mysql_query and transferred to the record we specified. If yes, the current record is returned. If no, it is false. mysql_field_seek syntax: mysql_fi mysql_field_seek is used in the record set returned by mysql_query and transferred to the record we specified. If yes, the current record is returned. If no, it is false;
Mysql_field_seek syntax:
mysql_field_seek(data,field_offset)
Parameters:
Data: indicates the dataset correctly returned by mysql_query.
Field_offset: specifies the position. no code is written starting from 0.
Check out a mysql_feild_seek instance.
$sql = "SELECT * from Person";
$result = mysql_query($sql,$con);
mysql_field_seek($result,3);
print_r(mysql_fetch_field($result));
mysql_close($con);
?>
Output result.
stdClass Object
(
[name] => Age
[table] => Person
[def] =>
[max_length] => 2
[not_null] => 0
[primary_key] => 0
[multiple_key] => 0
[unique_key] => 0
[numeric] => 1
[blob] => 0
[type] => int
[unsigned] => 0
[zerofill] => 0
)
Mysql_field_seek syntax: mysql_fi...