MySQL Forums
Forum List  »  PHP

Re: Problem with database connection on php
Posted by: Peter Brawley
Date: July 28, 2016 11:34AM

MySQL API is deprecated and will go away. Use mysqli.

$dbh = mysqli_connect(...) or exit( mysqli_connect_error() );

will give more info om why your connection is failing.

Options: ReplyQuote


Subject
Written By
Posted
Re: Problem with database connection on php
July 28, 2016 11:34AM


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.