i like it - and use that approach on any code more than about 100
lines...
-ski
Leif Mortenson wrote:
> It seems like there are an awful lot of questions like this on this list.
> What do you guys think of the idea of adding in code after all of the queries in
> Freetrade which check the $DatabaseResult and then call a function if there is a
> problem. This would make it possible to have a debug and online mode for
> Freetrade. in debug mode any database errors would be shown as above, while in
> online mode you could display a user friendly message about your site doing
> maintenance. This would also make it possible to send a message to a site
> administrator or something.
--
eCommerce, iCommerce solutions: http://www.eDivision.net
email address: [EMAIL PROTECTED] backup: [EMAIL PROTECTED]
phone/fax number: 770.216.1516 backup: 520.833.2569
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]