[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 w

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

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 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 logic separa

Re: [PHP] Stripslashes redundancy question.

2010-10-24 Thread Adam Richardson
etter method to use? > > Thank you > > Gary > > > > __ Information from ESET Smart Security, version of virus signature > database 5560 (20101024) __ > > The message was checked by ESET Smart Security. > > http://www.eset.com > > >

[PHP] Stripslashes redundancy question.

2010-10-24 Thread Gary
ipslashes in the variable. The script still works, but is there a problem with redundancy, or does one cancel the other out? Also, which do you think is a better method to use? Thank you Gary __ Information from ESET Smart Security, version of virus signature database 5560 (2010102