PHP3 Manual | ||
---|---|---|
Prev | Next |
msql_tablename -- get table name of 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++; } ?> |
Prev | Home | Next |
msql_selectdb | Up | MySQL Functions |