MySQL Forums
Forum List  »  Newbie

MySQL 4.1.1-nt and PHP 5.0.4
Posted by: Rob Pete
Date: July 20, 2005 12:55PM

Hello, I have been developing a webApp with PHP and MySQL. I have successfully made connections to MySQL with Java, but I want a PHP script to make connections too. I have been trying to follow examples from "PHP and MySQL Web Development: Third Edition" by Luke Welling and Laura Thompson. When I try this following code...

//Connect to database
echo "Connecting";
// exit;

$db = new mysqli('localhost','script','script','search_host_db');

echo "Connection Command Run";
exit;

if(mysqli_connect_error()){
echo "Error: Could not connect to database. Please try agian later";
exit;
}
else echo "connected";
exit;

I get the following error message...
Fatal error: Class 'mysqli' not found in c:\Inetpub\wwwroot\dbfinderweb\register.php on line 61

What am I missing?

Options: ReplyQuote


Subject
Written By
Posted
MySQL 4.1.1-nt and PHP 5.0.4
July 20, 2005 12:55PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.