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

Problem with a select distinct
I have a problema with a select distinct, I have the next sql:

select distinct a,b,c,d fr

php problem?
I don't think I'm stupid, but maybe I am.

I am working on a sit for a friend I am try to put

paginate search result
Hi, I have a paginations script to display data from my database but i would like to paginate someon

php title problem
Hi,

I am having a problem managing my page title with PHP.

Currently I have my <

Alternate messaging
I have 4 strings in MySQL db1

$string1 : Hello
$string2 : Hi
$string3 : Great
$strin

GET * FROM _____ Except?
I have a site that is for stock photography.

This section of the code calls images to display

radio button reamains checked
Hello i'm trying to keep the state off my radio buttons so it shows which ones where clicked after t

how can we add data from dynamic fields to mysql db in php
i have a script which i found on the internet. i modify that script according to my needs. what is i

Problem in String replace program's output
Hi all,
I was trying to make a program which accepts a string and replaces it with another stri

Does design fit in FPGA ?
Hi all,

I've made a large HCC-Design. Because of the program-size the compile process with th

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