MySQL Forums :: PHP :: mysqli_connect_errno always returns 0
mysqli_connect_errno always returns 0
Date: September 25, 2013 01:10PM
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?
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.