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

Filtering an Array Based on Value
I have a very simple script set up that pulls data from a database and is output using this code:

Operator precedence assistance.
I did a quick Google search and couldn't quite find the answer I wanted in terms I could understand,

Php script to read msword file
hi,

I need to read a msword file and i want to print the contents in that word file.

i

Is it possible to view php source code??
Hi All

I was just wondering if it's possible to view a websites php source code?
I know

Bit manipulation program with binary operations
My homework is to create a program to scan in and add binary numbers and print them like so

ob_ dynamic content
i was wondering about the potential to use ob to create a <div then remove it when the page

split string
Hi all

i have some names (imploded by comma):
Code: toronto,paris,madrid
Now, i would

switch form actions? not working
i want on submit to go to different pages according to the CatID

Code: <?php $CatID=$_

Intrastat Report Config in ECC 6.0 - goods Movement in EU countries
Colleagues, need ur help to understand the changes require in ECC 6 standard Report configuration se

PHP and SMS
Hi all forum members. I am new here and am unsure what category shoild I post this in.
Moderator

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