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

Not "Just Another" MMORPG - text based.
Hello,

I've been learning MySQL and PHP for the last 2-3 years.
Though, I've had long paus

xml element exists
Code: [Select]<?xml version="1.0"?>
<Addresses>
<

Multiple upload and Resize
I would like some help on my script I have the for my index.php

////

<html&

Disabling SAP menu
How do I disable SAP menu for all the users and just restrict them to User Menu in SAP ECC 6.0?

Bandwidth monitoring?
Hi guys,

I need a little information I have written a php app and I occurred to that I need

Unifying logins of two different scripts
I have two different game scripts which I want to embed on my own site. The problem is I don't want

UL and LI Add Form
The idea I want here is when the user click on a character name from the drop down select bar at the

Database connection failure
Hello All,

I am trying to create new connection to Oracle DB 10.1,
I could not see a

Pls help with PHP
Pls can anyone direct me on how to create a user account for a customer. For example i want know if

Can't get the unicode character
I'm trying to get some text from various parts of a file. I have converted the file to hex (bin2hex)

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