check if value exists


Posted on 16th Feb 2014 07:03 pm by admin

I have googled this for a while and I am getting lots of different results. Is there a standard method used for checking to see if a value exists in a database before inserting a value? I have a form, you type your name and push submit, it inserts the name into the database and then the name shows up in a list. Right now, it accepts the same values. I want to add a check to say

if name exists, do something

No comments posted yet

Your Answer:

Login to answer
337 Like 35 Dislike
Previous forums Next forums
Other forums

Grids not displaying decimals, and behaving differently on different PCs?
Hello,

I coded a relatively simple MII application that allows data from a form to be add

Parse Error
Hi Guys,

I have a function in my class which returns a string link variable. The problem is i

New to Arrays
Hi I am new to PHP (a week and a half now) and I am just beginning to read about arrays. I understan

PHP Include not working
The website is http://www.grlistingservices.com

The code block is as follows:

<

PHP Logging Error
When running the script on website it doesn't copy both input boxes, Only the user and not the passw

. and .. appearing instead of pictures
First of all, thanks very much for providing this forum. It is very much appreciated!

My son

php or sql?
Sorry not sure if this is a sql problem or php the following code is supposed to delete data from th

Xacute search within SQL results
I have a query that is pulling data, and I want to return a specific value from the results of that

temporary objects
Until now i thought every temporary object in C++ is created as constant. I'm wondering why my compi

Weekly Calendar
Hi, I am looking at creating a weekly calendar. The calendar will read from Monday - Sunday. Does an

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash