Posted by Jerry Stuckle on 10/19/07 12:51
Kye wrote:
>> That typically means you've added some code for debugging problems.
>>
>> There are settings in your php.ini file which should be different between
>> development and production systems (i.e. display_errors), and some debug
>> functions. And there are external debuggers.
>>
>> But there isn't a "debug mode" in the way you're thinking.
>
> Would this include the classic things like mysql_error like in the below?
>
> $result = mysql_query($query) or die ('Error in query: $query. '
> .mysql_error());
>
Yes, I would never use die() or display database error messages in
production code.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|