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

Did you know?Explore Trending and Topic pages for more stories like this.
if name exists, do something
No comments posted yet

Your Answer:

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

Get to know your fellow coder
I think it's time we got personal around here. There's a lot of code swapping and a few members kno

Feed Maker
Hi all.
First of all I must say I am not a php developer so I am afraid I don't know much about i

search function
HI guys,

if anyone could point us in the right direction of how to do this, or provide some t

url- go to webpage
i have an input text field and submit button.

how do i make the url entered into the textfiel

Onclick problem in Firefox
Hi,
I am using a . It doesn't seem to

script and html conflict in trying to create a header.
I have an error is occurring because of an html webpage with a "php require" at the top of

How do I send data using an html link
Hi

If I have
<a href="main_file.php">

How do I send data t

square instead of number
Hello
I do not know why but this code seems to work fine only in my xampp local insallation but n

whats wrong with my code please help!!!
this is the error


Warning: mysql_close(): supplied argument is not a valid MySQL-Link res

PHP loop
Okay so I have several "articles" stored in a mysql database and am attempting to echo tho

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