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

help with mysql_error()
Hi,

I am trying to insert data into a table, but I am not able to insert it. I wanted to see

CRM?
I think that's what they're called. Customer Management System? Anyway. Is there any good free ones

Need help PLEASE
ok i have this warning showing up

Warning: in_array() [function.in-array]: Wrong datatype for

AJAX form submit
I recently built a form that submits data to my database with an ajax function that is called throug

Line break?
Hi, I'm new to the forum and new to php. I'm not sure if I'm using the correct terminology so here i

FTP issues
Hi all,


I am currently facing some serious problems with a script and really need some ad

Gerenate tabel in Php
I whant to generate a tabel takeing data from database like this one so the results to be display on

Random date selection
i want to select random date with time(hour+minutes+sec) where date is specified(10/22/2009) and tim

Nested (echoed) php running wrong script
Got a problem with a php website I'm creating.

In a nutshell, the first page is entirely html

email CODING Problem
Email coding problem.

I need to send a section of the info to $tf and the same as a Cc to $em

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