mysqli problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

mysqli problem

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

The error would suggest you are attempting to remotely connect to a MySQL server.
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

Post by itsmani1 »

its was because of version, now its fixed.
Post Reply