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

Problem with PHP code- simple contact form
Hi Folks,
I'm relativily new to PHP; I know HTML and CSS stuff but I have a problem- I have a co

Showing selected item at top of list
Hi,

I've got a list of names which i am fetching from database like this:
$qry = db_query

My query is being run with no results.
I have this.

Code: function DropUser($duser_id, $user_email, $user_username) {

Problem with Subscreen
Dear Experts ,
I am facing a problem with the subscreens. My senario is as follows :

using file_get_contents??
okay how would i create a script using file_get_contents() in php have it grab search pages 1-20 and

Perplexing problem showing a .jpg
Please disregard..........I figured it out

login from external site
Hi my new experience begins, Now what i am trying to do is i make three pages, login.php logout.php

Formatting echo from database
So I have a database that stores First and last names, then echos them back to a website, as of now

Internal class functions don't seem to get executed.
Hi. Can someone please put me out of my misery on this. I don't write much PHP and this has me baffl

Error: SQL Syntax; Line 1
Code:

<?php require "global_settings.php"; ?>
<title&g

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