Reputation: 1
I am new to PHP and web servers, and i was going to make a website using PHP. I found a free login script that uses mysqli. Every time I go on the page it says I don't have mysqli? I am running Apache with PHP3. The mysqli part of the script is thus:
// if the connection is successfully established
if($conn = new mysqli($this->conn_datas['localhost'], $this->conn_datas['daztestc_testdaz'], $this->conn_datas['dj2403ms81'], $this->conn_datas['daztestc_daztest'])) {
$sql = "SET NAMES 'utf8'";
$conn->query($sql);
$this->conn = $conn; // add the connection in the $conn property
}
Upvotes: 0
Views: 244
Reputation: 23695
Probably you don't have MySQLI extension installed. Check this page to know how to enable it. Ah... of course... you can't use it on PHP3... so if you really want, upgrade your server.
Upvotes: 0
Reputation: 456
php3? mysqli was not introduced until php5. where did you find a server with such an old copy of php? and is any of the code working? as most things have changed since php3.
Upvotes: 4