If a record matches an existing record do nothing


Posted on 16th Feb 2014 07:03 pm by admin

So I don't know if I should put this here or in mysql, but what my script is for is for people to add their emails to our mailing list. Pretty simple, I got that working. But what I want it do now is that if somebody puts their email in and their email is already added to our database then it doesn't do anything. but if their email isn't in our database then it will add it.

Did you know?Explore Trending and Topic pages for more stories like this.
So basically stop duplicate records. Is there any way to do this php? I'm sure there is, its just not coming to me.
No comments posted yet

Your Answer:

Login to answer
232 Like 20 Dislike
Previous forums Next forums
Other forums

Get Total From While Loop
I'm trying to get the total for each product and add them for a Grand Total to list outside the loop

Email to a friend script problems
I have this send-to-a-friend script with 2 issues:


1) When you open the form popup on a p

tell csv import script to ignore blank rows?
Hi i have the below script but i get an error if a row is blank ie a return in the csv file at the e

SMTP server...
I recently found a tutorial online on SMTP authentification for sending emails from webpages, here i

PHP Session Issue
I'm having an issue with one section on my website dealing with sessions. Now I know that myself and

code help - pagination
Hi all, I have this code, basically a user logs into my site and they get this page.

The pro

need help in update query
i create a form for update. there are 8 columns in my mysql table. on my main page all the data is r

Ball movement
I want to move a ball from one point to another and it should hit a group of balls at the other end

how to export excel file in same server
My first post - php newbie, so appreciate your support.

I'm currently using headers to save w

Simple MySQL script is not working
Hey guys,

Just familiarizing myself with PHP and MySQL. I am following along in the O'Reilly

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