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

MySQL query problem
When I try to run the following piece of code, I get this error:
QuoteWarning: mysql_query(): sup

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

Linked Keywords
I am trying to get a script that makes my predefined keyword converted to links and / or converted t

What makes a script your own?
If someone finds a login script online, and changes some variable names around and some other minor

IIS7 and getimagesize() problem
I have just discovered after hrs of trying to fix a problem where it's coming from. It's to do with

Loop column after 2 results
Hello All.

Here is what I have:

Client ID Company name Clien

Connect to database that isn't localhost
I am currently doing a small script for a company that doesn't have mySql support on there hosting.

Cron Job and Output
I have php codes running under a cron job.
But everytime i output (echo) , it comes out as comple

mails going in spam??
The mails I sent to folks in my database using mail(function) are going in spam??

Any idea ho

Any meaningful project for a new C++ programmer?
I want to do some meaningful program, so I can help myself to learn

Assume I know the fol

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