MySQL Forums
Forum List  »  PHP

Re: Cannot connect to Database
Posted by: Peter Brawley
Date: December 20, 2014 10:04AM

> or die("Unable to connect to MySQL");

Bad idea, hides the error. Call mysql_error().

And Pao: the mysql PHP API is deprecated, use the mysqli API.

Options: ReplyQuote


Subject
Written By
Posted
December 10, 2014 06:24PM
December 10, 2014 09:39PM
January 06, 2015 02:08AM
December 20, 2014 02:28AM
Re: Cannot connect to Database
December 20, 2014 10:04AM
December 30, 2014 10:18PM


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.