msql_tablename

msql_tablename -- Get table name of field

Description

string msql_tablename(int query_identifier, int field);

Msql_tablename() takes a result pointer returned by the msql_list_tables() function as well as an integer index and returns the name of a table. The msql_numrows() function may be used to determine the number of tables in the result pointer.

Example 1. Msql_tablename() example

  1 
  2 <?php 
  3 msql_connect ("localhost");
  4 $result = msql_list_tables ("wisconsin");
  5 $i = 0;
  6 while ($i < msql_numrows ($result)) {
  7     $tb_names[$i] = msql_tablename ($result, $i);
  8     echo $tb_names[$i] . "<BR>";
  9     $i++; 
 10 }
 11 ?>
 12