Page 1 of 1

mysqli problem

Posted: Wed Sep 26, 2007 7:25 am
by itsmani1
I am having connection problem with mysqli Please see and help if you can.

Code:

Code: Select all

$name = new mysqli("localhost", "user", "pass", "database","3307") or die( mysqli_error($name));
here is error:

Warning: mysqli::mysqli() [function.mysqli-mysqli]: (HY000/2003): Can't connect to MySQL server on '75.126.199.114' (111) in /home/cmela/public_html/database/connections.php on line 2




Thank you
mani

Posted: Wed Sep 26, 2007 9:47 am
by feyd
The error would suggest you are attempting to remotely connect to a MySQL server.

Posted: Fri Sep 28, 2007 3:54 am
by itsmani1
its was because of version, now its fixed.