Re: [PHP] MySQL connect used to work PLUS errors not displaying

2007-08-24 Thread Linux NG/Lists
Well, I suppose I should say "Doh!" but even when I get rid of the "@", I still get a blank page - no errors, and no database, either! A followup - I'm taking this over to PHP-DB since it's now database-centric, I think. This still fails: $db = new mysqli( But this works $conn

Re: [PHP] MySQL connect used to work PLUS errors not displaying

2007-08-24 Thread Jim Lucas
Linux NG/Lists wrote: 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

Re: [PHP] MySQL connect used to work PLUS errors not displaying

2007-08-24 Thread Linux NG/Lists
comex wrote: On 8/24/07, Linux NG/Lists <[EMAIL PROTECTED]> wrote: b) Why does the error reporting NOT work as soon as I jam a $db new mysql call into the code? Because you disabled it with an '@'. Well, I suppose I should say "Doh!" but even when I get rid of the "@", I still get a b

Re: [PHP] MySQL connect used to work PLUS errors not displaying

2007-08-24 Thread comex
On 8/24/07, Linux NG/Lists <[EMAIL PROTECTED]> wrote: > b) Why does the error reporting NOT work as soon as I jam a $db new > mysql call into the code? Because you disabled it with an '@'. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php