You are here: Re: Disallow duplicate entries... « All PHP « IT news, forums, messages
Re: Disallow duplicate entries...

Posted by fsidler@nospam.gmail on 07/27/06 20:48

sloane.irwin@gmail.com wrote:
> I would like it to generate an error and have the key be unique,
> however I also want the user to be able to easily obtain the duplicate
> record. Once they try to submit that entry, if it exists I would like
> something like a box to pop up and say "A record with that
> Inventory/Serial number already exists. Click Ok to view this record,
> or click Cancel to return to the Enter information page.
>

So whats the problem?
Simply try adding the record. If a field is set unique and a matching
entry is already there, it will give you an error- Retrieving this
error, you tell the user that this name (or whatever it is) is already
taken, and at the same time read out and show the existing record.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация