[PHP] Question, what to do when finding an error while validating data

2004-04-05 Thread Mike Zornek
I'm making a conscience effort to improve my PHP skills, that being making objects, unit testing, better error handling etc. So I have a questions. I have a database that is storing all of my records. One column is of type enum where the two legal values currently are home and work; work is

Re: [PHP] Question, what to do when finding an error while validating data

2004-04-05 Thread Jason Giangrande
Mike Zornek wrote: Oops, forgot to send my original response to the list last time. On 4/5/04 1:33 PM, Jason Giangrande [EMAIL PROTECTED] wrote: What I usually do is create a select box that has only the values of the enum. That way no one should be able to (in theory) put any value other than

Re: [PHP] Question, what to do when finding an error while validating data

2004-04-05 Thread John W. Holmes
From: Mike Zornek [EMAIL PROTECTED] I'm making a conscience effort to improve my PHP skills, that being making objects, unit testing, better error handling etc. So I have a questions. I have a database that is storing all of my records. One column is of type enum where the two legal values

Re: [PHP] Question, what to do when finding an error while validating data

2004-04-05 Thread Mike Zornek
Thanks the feedback so far. To expand the scope of my issue past enums (which by their limited nature are easy to check and set defaults) let me ask this... There is a column called Address in my email table, Thus I am creating a PHP object called Email to interact with it. The Address variable