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

PHP/Database issue
My friend is helping me make a database where you go to a certain webpage of my site and the page wi

Is there a quick way to do this?
Hi all,

I need to create a mysql table from php that goes a little something like this

Get relative path from absolute path
How would one go about getting the relative path to a file from its absolute path?

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

My son

$_POST
Hi, I have 2 seperate php files, and i want my $_POSt["fname"] To go into both of them, Fo

PHP switch function help
Hi, I am trying to create a search function for a directory website. On the search function on html

Find current logon time
Hi,
in my sql script i want to query and find out the logon time of the current session.
<

IP Logger for Voting Script
Can anybody help me place an IP logger into my voting script?
I know that maybe it is not as secu

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

Embedding flash object in Else statement
This is my first major project in PHP and I'm having some trouble embedding a flash object in an Els

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