Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Display MySQL server information in PHP

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 101
    Comment on it

    To display MySQL server information in PHP a function mysql_get_server_info() is used. It returns version of MySQL server on success else false.

    For example:

    <php
    //enter your hostname,username and password of mysql
    mysql_connect("localhost", "", "") or die("Could not connect: " . mysql_error());
    //display server version
    printf ("MySQL server version: %s\n", mysql_get_server_info());
    ?>
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: