mysql_field_table()

It returns the name of the table the specified field is in

Example

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

Output

users

Share