I am having strange problem on the live server , mysqli_connect() does not working on the live server , although when I am using new mysqli() it is working on the live server , in my case I cannot use the new mysqli() OOP paradigm. I want to do it by mysqli_connect() , I have checked the php.ini file on the server it shows that I can use mysqli_connect()
this is my connection object with mysqli_connect();
$conn = mysqli_connect("localhost", "xxx", "xxx", "xxxx");
this is not working
although when i am using the same credentials with new mysqli()
$conn= new mysqli("localhost", "xxx", "xxx", "xxxx");
this piece of code is working..
Any help would be appreciated I want to execute my connection with mysqli_connect()
I am getting this error
PHP Warning: mysqli_connect(): (HY000/2002):