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

How to set pass login name from htaccess to php
When the user logs into my members page via htaccess, I'd like to retain the username so that I can

Issues: PHP Forms -Clearing
I've tried looking online before actually asking for help, but I've been looking for about the past

Cloud Computing?
Hello,

I was wondering if anyone could help explain this term to me. I'm starting to hear it

Quick Syntax Question
Hi folks,

I'm getting the following error: "unexpected T_LNUMBER". I'm trying to b

mail()
Hi all. I have a problem with emails. I am trying to set up a mail system where customers can subscr

Display last record first.
I need some help how put the last record first and first record last.

Thanks

Code: &am

include
Hi I have this way of licensing my PHP application, and I want to know if you guys can answer some q

cURL Upload Help
OK, I am creating a bridge from a local program to my website and I am trying to find the best way t

How do I get the row number from from an sql table query
Hi all

I have a table that I query and it returns a number of rows.
mysql_num_rows($query)

send() and recv() parameters confusion
On server Side:
int recv (Socket,Buffer, Length, Flags)
On Client Side:
int send (Soc

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