Skip navigation links

MySQL Forums :: PHP :: mysqli_connect_errno always returns 0


Advanced Search

mysqli_connect_errno always returns 0
Posted by: Xavier Bourguignon ()
Date: September 25, 2013 01:10PM

Hello,

I am trying to connect to a database using the mysqli_connect($host, $user, $pass, $db) construct.

Once a connection is returned I check for errors with mysqli_connect_errno($con).

The problem is what ever I put in the parameters to mysqli_connect, real values or fake ones, mysqli_connect_errno always returns 0, how can this be?

Has anyone got an idea?

Thank you
Crouz

Options: ReplyQuote


Subject Written By Posted
mysqli_connect_errno always returns 0 Xavier Bourguignon 09/25/2013 01:10PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.