Jump to content

[SOLVED] php version 4.4.3


dazz_club

Recommended Posts

Hi guys and girls,

 

i am trying to connect to a server with this script

 

<?php
require("constants.php");
//connection the database
$connection = mysqli_connect("localhost", "xxx", "xxx" , "xxx" );
if (!$connection){
	die("Database connection failed; " . mysqli_connect_errno());
}
?>	

 

i have checked out the php version, which is 4.4.3, is it k to use mysqli_connect in this case??

 

as when i checked out the site an error was displayed

Fatal error: Call to undefined function: mysqli_connect() in /home/base/public_html/test/admin/includes/connection.php on line 4

 

I have then checked out line 4 and it is this

$connection = mysqli_connect("localhost", "xxx", "xxx" , "xxx" );

Any ideas why this is happening??

 

kind regards

Dazzclub

Link to comment
https://forums.phpfreaks.com/topic/100016-solved-php-version-443/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.