Original MySQL API (
Mysql
)
2304
Parameters
result
A result pointer resource that's returned from
mysql_list_tables
.
i
The integer index (row/table number)
Return Values
The name of the table on success or
FALSE
on failure.
Use the
mysql_tablename
function to traverse this result pointer, or any function for result tables,
such as
mysql_fetch_array
.
Changelog
Version
Description
5.5.0
The
mysql_tablename
function is deprecated,
and emits an
E_DEPRECATED
level error.
Examples
Example 20.75.
mysql_tablename
example
<?php
mysql_connect("localhost", "mysql_user", "mysql_password");
$result = mysql_list_tables("mydb");
$num_rows = mysql_num_rows($result);
for ($i = 0; $i < $num_rows; $i++) {
echo "Table: ", mysql_tablename($result, $i), "\n";
}
mysql_free_result($result);
?>
Notes
Note
The
mysql_num_rows
function may be used to determine the number of tables
in the result pointer.
See Also
mysql_list_tables
mysql_field_table
mysql_db_name
20.7.2.5.47.
mysql_thread_id
Copyright 1997-2012 the PHP Documentation Group. [2230]
•
mysql_thread_id
Return the current thread ID
Warning
This extension is deprecated as of PHP 5.5.0, and will be removed in the
future. Instead, the
MySQLi
or
PDO_MySQL
extension should be used. See
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...