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*

    marcos...@gmail.com <mailto:marcos...@gmail.com>




_______________________________________________
Dolibarr-dev mailing list
Dolibarr-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev


--
Eldy (Laurent Destailleur).
---------------------------------------------------------------
EMail: e...@destailleur.fr
Web: http://www.destailleur.fr

Dolibarr (Project leader): http://www.dolibarr.org
To make a donation for Dolibarr project via Paypal: cont...@destailleur.fr
AWStats (Author) : http://awstats.sourceforge.net
To make a donation for AWStats project via Paypal: cont...@destailleur.fr
AWBot (Author) : http://awbot.sourceforge.net
CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net

_______________________________________________
Dolibarr-dev mailing list
Dolibarr-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev

Répondre à