08-04-2009, 03:57 PM
|
#1 (permalink)
|
|
The Contributor
Join Date: Jul 2009
Posts: 80
Thanks: 13
|
if data is already in database
Hi I am trying to work out the following information
Lets say I have the word apple in my database and someone wants to place another apple in the db, I don't what them to be able to.
I don't want to have to use the unique key to do this, however I have already.
What I want to do is in the PHP if the word is in the database it ends the php code, and does not go on.
I was thinking something like this.
Code:
if ($row[name] =="apple'') {
END
}
else
{
continue
};
|
|
|
|