msql_tablename

(PHP3 , PHP4 )

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


<?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++; 
}
?>
      


Hosted by Tonec Inc.