msql_tablename

Get table name of field (PHP 3, PHP 4 )
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 581. msql_tablename() example

<?php
msql_connect
("localhost");
$result = msql_list_tables ("wisconsin");
$i = 0;
while (
$i < msql_numrows ($result)) {
   
$tb_names[$i] = msql_tablename ($result, $i);
   echo
$tb_names[$i] . "<BR>";
   
$i++;
}
?>

This HTML Help has been published using the chm2web software.