Hi,
Hope someone can help me here! Sounds like a simple problem; I’m still learning …..
I have a form where a user enters his/her name and city. I have the code to insert a record in the MySQL database for that user; and it works fine. What I’m trying to do now is add the record ONLY if there is no such name and city in the DB. So, my logic is:
1) get name and city from user
2) select from DB for name and city
3) if $result = 0 add record to DB
else “pop up a message saying there is such a name/city, and re-edit form entries”
My question is how to do this pop-up message, so that when this shows up, the user will click “ok”, and go back tp the form where he/she can change the name/city.
Thanks in advance!
DL