From result row get the table name : Query Result « MySQL Database « PHP

From result row get the table name


   $query = "SELECT id as Employee_ID FROM Employee";
   $result = mysql_query($query);
   $row = mysql_fetch_row($result);
   echo mysql_field_table($result, 0);



Related examples in the same category

1.Get column alias
2.Use mysql_result function to get query result
3.Store query result in an array
4.Use for loop to read all query result
5.use Column name in select statement as the variable name
6.Store query result in an Object
7.Store query result in an associate array
8.Get returned row count