Answer is "add a line to the box with $db->error and the sql executed"


Le 25/08/2012 08:09, Marcos García a écrit :
Hi,

I'm looking into some boxes .php files and I see that some of them, when a SQL error is found, print a dol_print_error and others just add a line to the box with $db->error and the sql executed.

What should be the appropiate way?

Thanks.

Regards,

    *Marcos García*

    [email protected] <mailto:[email protected]>




_______________________________________________
Dolibarr-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev


--
Eldy (Laurent Destailleur).
---------------------------------------------------------------
EMail: [email protected]
Web: http://www.destailleur.fr

Dolibarr (Project leader): http://www.dolibarr.org
To make a donation for Dolibarr project via Paypal: [email protected]
AWStats (Author) : http://awstats.sourceforge.net
To make a donation for AWStats project via Paypal: [email protected]
AWBot (Author) : http://awbot.sourceforge.net
CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net

_______________________________________________
Dolibarr-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev

Répondre à