Discussion in 'Server Operation' started by weslkers, May 1, 2007.

  1. weslkers

    weslkers New Member

    i doing the PHP Connection test with Mysql~ Here is the coding,

    // hostname or ip of server (for local testing, localhost should work)

    // username and password to log onto db server

    // name of database

    $link = mysql_connect("$dbServer", "$dbUser", "$dbPass") or die("Could not connect");
    print "Connected successfully<br>";
    mysql_select_db("$dbName") or die("Could not select database");
    print "Database selected successfully<br>";

    // close connection

    I received this error,

    Fatal error: Call to undefined function mysql_connect() in D:\public_html\phpconection.php on line 12

    Any wrong code on line 12?
  2. falko

    falko Super Moderator ISPConfig Developer

    This indicates that there is no MySQL support in your PHP installation? Did you install and enable the PHP-MySQL module?

Share This Page