How does mysql jump to the specified record mysql_field_seek tutorial _ PHP Tutorial

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

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.