Oracle 5.0 Reference Manual page 2499

Table of Contents

Advertisement

exit();
}
$query = "SELECT Name, SurfaceArea from Country ORDER BY Code LIMIT 5";
if ($result = mysqli_query($link, $query)) {
/* Get field information for all fields */
while ($finfo = mysqli_fetch_field($result)) {
/* get fieldpointer offset */
$currentfield = mysqli_field_tell($result);
printf("Column %d:\n", $currentfield);
printf("Name:
printf("Table:
printf("max. Len: %d\n", $finfo->max_length);
printf("Flags:
printf("Type:
}
mysqli_free_result($result);
}
/* close connection */
mysqli_close($link);
?>
The above examples will output:
Column 1:
Name:
Name
Table:
Country
max. Len: 11
Flags:
1
Type:
254
Column 2:
Name:
SurfaceArea
Table:
Country
max. Len: 10
Flags:
32769
Type:
4
See Also
mysqli_fetch_field
mysqli_field_seek
20.7.3.11.2. mysqli_result::data_seek,
Copyright 1997-2012 the PHP Documentation Group. [2230]
mysqli_result::data_seek
mysqli_data_seek
Adjusts the result pointer to an arbitrary row in the result
Description
Object oriented style
bool mysqli_result::data_seek(
MySQL Improved Extension (Mysqli)
%s\n", $finfo->name);
%s\n", $finfo->table);
%d\n", $finfo->flags);
%d\n\n", $finfo->type);
mysqli_data_seek
2479

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 5.0 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Mysql 5.0

Table of Contents