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

phpmailer class & pop.gmail.com?
Code: <?php
$mail->IsSMTP();
$mail->Host = "pop.gmail.com";

php + mysql count consecutive data
I have a database of values and I want to work out how to display them if the values match a consecu

License Issue - service type user
Hi,

I would like to understand the following issue regarding sap license.
I wish to

date function help
i need help with date function

Code: [Select]<!DOCTYPE HTML PUBLIC "-//W3C//DTD H

Post PHP form to non-existing page
The company that I work for host their PHP code on IIS on a Windows server, no Apache, so no mod_rew

empty() error
Why does

Code: empty($USER_ID = $_SESSION["USER_ID"])
create this error...

add to sql result
ok see rite now my sites hit counter is counted from the mysql visitor log i need to clear it aft

PHP Display Telephone Number On Referrer
I have used the php below to show a different telephone number in the header of the site depending u

Custom list order
Hi there,

I have checked this tutorial and it's great till the point where I want to display

how to load php class from another domain?
how to load php class from another domain?

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