41
mysql_list_dbs
313
LAST_INSERT_ID() in an SQL query. For more information about PHP's maximum
integer values, please see the integer documentation.
Note
Because mysql_insert_id acts on the last performed query, be sure to call
mysql_insert_id immediately after the query that generates the value.
Note
The value of the MySQL SQL function LAST_INSERT_ID() always contains the
most recently generated AUTO_INCREMENT value, and is not reset between
queries.
See Also
mysql_query
mysql_info
5.5.32 mysql_list_dbs
Copyright 1997-2014 the PHP Documentation Group.
• mysql_list_dbs
List databases available on a MySQL server
Warning
This function was deprecated in PHP 5.4.0, and it and the entire original MySQL
extension was removed in PHP 7.0.0. Instead, use either the actively developed
MySQLi or PDO_MySQL extensions. See also the MySQL: choosing an API guide
and its related FAQ entry for additional information. Alternatives to this function
include:
SQL Query: SHOW DATABASES
Description
resource mysql_list_dbs(
resource link_identifier
= =NULL);
Returns a result pointer containing the databases available from the current mysql daemon.
Parameters
link_identifier
The MySQL connection. If the link identifier is not specified, the last link
opened by mysql_connect is assumed. If no such link is found, it will
try to create one as if mysql_connect was called with no arguments.
If no connection is found or established, an E_WARNING level error is
generated.
Return Values
Returns a result pointer resource 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.
Examples