note 57035 rejected from ref.mysql by mazzanet

From: Date: Thu, 22 Sep 2005 07:34:59 +0000
Subject: note 57035 rejected from ref.mysql by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-95582@lists.php.net to get a copy of this message
Note Submitter: soumenc at fastmail dot fm ---- I am receiving the following error when trying to connect my sql database from PHP 5. Fatal error: Call to undefined function mysqli_connect() in C:\Inetpub\wwwroot\testphp\2.php My code is as follows... <html> <head> <title>PHP Test 2</title> </head> <body> <?php $host = "155.1.99.98:3306"; $db = "testdb"; $u = "root"; $p = "root"; // Connecting, selecting database $link = mysql_connect(host,u,p) or die("Could not connect: " . mysql_error()); echo 'Connected successfully';?> </body> </html>

« previous php.notes (#95582) next »