Re: MySQL connect used to work PLUS errors not displaying
| From: | Jim Lucas | Date: | Fri, 24 Aug 2007 23:02:56 +0000 |
| Subject: | Re: MySQL connect used to work PLUS errors not displaying | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-261257@lists.php.net to get a copy of this message | ||
Linux NG/Lists wrote:
<?php error_reporting(E_ALL); ini_set('display_errors','On'); @ $db=new mysqli('localhost','whil','secret','test'); get rid of the @, it will squelch your error output
if (mysqli_connect_errno()) {echo 'Error could not connect to database.'; exit; } ?>put something at the end like [DONE] or something so you can see if it is getting past that if statement. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare