note 57035 added to ref.mysql

From: Date: Thu, 22 Sep 2005 05:28:25 +0000
Subject: note 57035 added to ref.mysql
Groups: php.notes 
Request: Send a blank email to php-notes+get-95575@lists.php.net to get a copy of this message
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> ---- Manual Page -- http://www.php.net/manual/en/ref.mysql.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+57035 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57035&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57035&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57035&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57035&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57035&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57035&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57035&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+57035&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#95575) next »