PHP.nl

mysql_get_server_info

mysql_get_server_info

Get MySQL server info

Waarschuwing: > mysqli_get_server_info``PDO::getAttribute``attribute``PDO::ATTR_SERVER_VERSION

 **mysql_get_server_info** resource $link_identifier

Retrieves the MySQL server version.

Returns the MySQL server version on successreturn.falseforfailure.

Voorbeeld: example

<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
printf("MySQL server version: %s\n", mysql_get_server_info());
?>
MySQL server version: 4.0.1-alpha

mysql_get_client_info``mysql_get_host_info``mysql_get_proto_info``phpversion