mysql_field_table

string mysql_field_table(mysql result result_handle, int field_offset) 
result_handle Result handle returned by mysql_db_query() or mysql_query()
field_offset Field offset to use

Gets the name of the table to which the specified field belongs.

Returns:

String; FALSE on error

Description:

mysql_field_table() returns the name of the table containing the field specified by field_offset .

Version:

PHP 3+, PHP 4+

See also:

To find the number of rows affected by a query:

mysql_num_rows() 

Example:

Find the table name for the fields in a query
 <?php // Included code that connects to a MySQL server and sets a default database // See the MySQL Functions chapter introduction for the source code for the file include ('mysql_connect.inc.php'); ...

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.