how to disable mysql sql warning display?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

how to disable mysql sql warning display?

Postby ta1 » 23. March 2006 02:04

Hello, I have been using XAMPP for a while, it basically works as a charm for me on both Windows and MAC.

I have a simple question - I'd like to disable the warning messages. For example: if I were to connect to mysql via php:

<?
new mysqli($host,$user, $pass, $db);
?>

When the user id/pwd are not correct, I don't want to see the warning messages like below displayed via browser. How do I change XAMPP to add --error-log command?

Warning: mysqli::mysqli() [function.mysqli]: Access denied for user 'erere'@'localhost' (using password: YES) in "myphp" on line x
ta1
 
Posts: 2
Joined: 23. March 2006 01:53

Postby KingCrunch » 23. March 2006 02:31

try "@" before "new" or set error_reporting to E_NONE (?) in php.
Nicht jeder Fehler ist ein Bug ...
KingCrunch
 
Posts: 1724
Joined: 26. November 2005 19:25

Postby ta1 » 23. March 2006 16:46

I changed the php.ini in the apache/bin, (set display_errors = off and log_errors = on) and it worked.
ta1
 
Posts: 2
Joined: 23. March 2006 01:53


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 107 guests