Name
mysql_get_server_info
Synopsis
string mysql_get_server_info([cresource connection
])
Returns
as a string the version of the MySQL DBMS. An optional
connection
resource handle may be provided
as the parameter, otherwise, the most recently opened connection that
is still open is assumed. This function is available only in PHP
4.0.5 or later versions.
Example
<?php mysql_connect("localhost", "fred", "shhh"); // Prints (on our machine): This is MySQL version 3.23.44-log echo "This is MySQL version " . mysql_get_server_info( ); ?>
Get Managing & Using MySQL, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.