[GLLUG] [ot]MySQL/PHP

Mike Szumlinski szumlins@msu.edu
Wed, 27 Feb 2002 23:07:22 -0500


Good call. 

I'm new to the whole MySQL/PHP thing so bear with me on all of this.

Now what would be the best way to inform the user if they did duplicate the
address (ie, the server wouldn't accept the INSERT, but how does the user
know it didn't?)

-Mike

On 2/27/02 9:56 PM, "Ben Pfaff" <blp@cs.stanford.edu> wrote:

> I would just make the email column UNIQUE in the database schema,
> so that an attempt to insert a duplicate row would be rejected
> automatically by the database server.

-=--===---===---===---===-=-
|Mike Szumlinski           |
|Michigan State University |
-=--===---===---===---===-=-
"We are what we repeatedly do. Excellence, then, is not an act, but a habit"

                                                                 -Aristotle