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

Add 5 to a variable when a button is clicked, and re-run a for loop
So I'm making a feedback sort of section on a website with MySQL and PHP, I've gotten the script to

Calling strings from other php class
I have test1.php{
$string1;
$string2;
....
... //10 strings in this class <

Problem in back link
I have page where i have given javascript back link but when i click on it browser give a message

DOMDocument
Hello All,

I need to take an XML document, modify some of the nodes in it and then perform a

session_destroy();
new to php
I have a simple login and am trying to write a logout.
I set a $_SESSION var to 1 i

PHP Tab Control
Hi All,

I would like to have PHP tab control with/without Javascript.

But I want to r

i need help with php header and footer
I have designed a header and footer for my site and they seem to be ok when they are running individ

How to make a mail Form secure?
I want to create an email Form on my web site. How can I make the Form secure so the submitted info

Not Loading Function Into Div
I'm not sure whether to put this under the php forum or ajax forum but because I tink it's more of a

How to change www in url with a specified name
Hi
I'm trying to change the url http://www.sitename.com/apparels to something like below
http:

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