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

url- go to webpage
i have an input text field and submit button.

how do i make the url entered into the textfiel

PHP Error
On my .php page I have a drop down box that has several names in it. When a user clicks the name &am

Using real time in php
I'm very average at PHP and im looking to introduce time to something on my site.
Its a sports si

update sql when refresh - php
hi
I have made a table (attachement)

the users can update the sql database using + or x bu

parsing error
can anyone explain this syntax error:

Parse error: syntax error, unexpected T_IF

The e

why isn't this PHP code working ???
it's suppose to find a name on the database.

<?php

$s = $_POST["lname&

Removing Title From database problem
Hi again ! i am having an issue with updating database. When i update any price of a title it remove

Basic Question about Threading and PHP...
I have a page that I am working on and it is taking several hours to process. The basics of what th

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

Where is my php.ini???
Hi

First off - apologies - i'm not a coder so this may sound very amateur.

I'm having

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