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

dinamic "textboxes"?
Ey all, my first post here, i hope its not a hard one

I display mysql results in a table

Warning message
I've put a website that I was doing live and I'm getting this warning message when I try to add a ne

db entry based on primary key
My "topics" table contains 10 entires
*--------------*
topicid topic
------

If statement help please.
Hello on my site I have 2 content boxes. 1 is for the main content (which is the biggest one) and th

Perplexing problem showing a .jpg
Please disregard..........I figured it out

PHP Surveys
I really would like some advice.

If you have a client come to you asking for a survey to be d

Dynamic memory problem
Hey,

At the beginning of my code, I have this line:

Shape* gShape = 0;

ob_ dynamic content
i was wondering about the potential to use ob to create a <div then remove it when the page

Simple image grab script.
I was wondering if it was possible and if anyone knew how to make a simple php script that looks at

Changing color in GD via variable?
Hey guys, I'm new here. x)

I'm very much a noob when it comes to PHP, but I'm trying to learn

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