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

Please help with SMTP Authenticated PHP Email Form
Hello, I'm creating a PHP email form, and for this particular server, I have to use SMTP Authenticat

SAP Project Module
I have seen in the SAP Project Module,plan cost and budget are not equal and even difference is sign

Cant display mysql data
Hey all,

I am learning php and my first goal is to create a simple CMS. At the moment I am st

Query failed issue with php script but works fine in mssql manager!
hi i have the script below which copies data from one table to another but will only insert new data

Array help
Hello i got this code to fetch data from database but it is not working it displays
7
Array

Where do I put CRON code
So I've figured out alot about how to automatically run a php function. I can't figure out where to

How to secure my login data to my database?
Hi there,

It may be a stupid question but I don't know how to secure my login data to my data

Simple AND question
Hello,

I've got following code:

Code: if(strpos($row[13],"http://")

How to show next and prev records
Hi all,

Sorry if this is simple, i'm very new to php, well, any programming language actually

Writing to the middle of a file
Hi I have a bit of a problem. Is there any way i can write some text to a middle of a text file. For

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