<?php
// Attempt to connect to the default database server
$link = mysql_connect("mysql_host", "mysql_user", "mysql_password")
or die ("Could not connect");
//select database
$db_select = mysql_selectdb("mydb",$link);
//returns result set on executing the query
$result=mysql_query("select * from content",$link);
//Find and returns the table name of specified field
$table = mysql_field_table($result, 1);
echo "Table Name of specified field: $table";
mysql_close($link);
?>