JimNayzium
07-23-2008, 09:53 PM
I want to write a simple submit form.
have it hit a mySql database using PHP.
I want the form to be VERY simple.
NAME: -- submit
and if the name is already taken in the database for it to refresh with an error thrown...
write now it errors out in mySQL cuz I have the field set to UNIQUE in phpMyAdmin---
but I want to echo back to the user something besides..
Duplicate entry "Name" for key 2
have it hit a mySql database using PHP.
I want the form to be VERY simple.
NAME: -- submit
and if the name is already taken in the database for it to refresh with an error thrown...
write now it errors out in mySQL cuz I have the field set to UNIQUE in phpMyAdmin---
but I want to echo back to the user something besides..
Duplicate entry "Name" for key 2