Just do a SELECT query to MySQL before you do an INSERT then compare the
two. Compare whatever you don't want to be a duplicate. In most cases you'll
have a central point at which you should be able to check but it all depends
on your setup/situation. Understand? I could go into a more in depth detail
if needed.

> -----Original Message-----
> From: Chip [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 03, 2001 12:08 AM
> To: [EMAIL PROTECTED]
> Subject: data checking during input?
> 
> 
> I have a database I enter data into from a web based php form.
> I wonder if there is a way to have mysql check the database for
> a duplicate entry before it gets written into the database? And
> inform me of such so I will not have duplicate entries?

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to