Re: [PHP] Stripslashes redundancy question.

2010-10-24 Thread Adam Richardson
of virus signature database 5560 (20101024) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Hi Gary, Calling stripslashes() more than once on the same

Re: [PHP] I need some thoughts on code duplication and separation

2010-10-24 Thread Rico Secada
On Thu, 21 Oct 2010 10:55:14 -0400 Paul M Foster pa...@quillandmouse.com wrote: On Thu, Oct 21, 2010 at 04:05:50AM +0200, Rico Secada wrote: Hi. I am working on a small system where I am both trying to avoid code duplication and at the same time I am trying to keep the presentation

Re: [PHP] Reminder On Mailing List Rules

2010-10-24 Thread Paul M Foster
On Fri, Oct 22, 2010 at 12:35:43PM -0400, tedd wrote: At 4:54 PM -0400 10/21/10, Marc Guay wrote: Toilet seat. Up or down. Same thing? Sort of. No, everything down (seat and top) is the rule in my house. You should see how women often react when I tell them to put the top down -- it's

[PHP] Best practice for if (!$stmt-execute())

2010-10-24 Thread Rico Secada
Hi. I have been doing like this: if (!$stmt-execute()) { return false; } else { ... some code return true; OR return $foo; // Some int, string, whatever. } I am thinking about changing the return false with a: if (!$stmt-execute()) { die(DB_ERROR); This way