mysql_field_seek()

It moves the result pointer to a specified field

Example

<?php
mysql_connect(“localhost”, “root”, “phpcode”) or die(mysql_error());
mysql_select_db(“database_name”);
echo “<pre>”;
mysql_field_seek($userQry=mysql_query(“SELECT * FROM users”),1);
print_r(mysql_fetch_field($userQry));
mysql_close();
?>

Output

stdClass Object
(
[name] => name
[table] => users
[def] =>
[max_length] => 4
[not_null] => 1
[primary_key] => 0
[multiple_key] => 0
[unique_key] => 0
[numeric] => 0
[blob] => 0
[type] => string
[unsigned] => 0
[zerofill] => 0
)