Hi all,
I have a statment that goes
PHP Code:
if ($test){ //do this
}elseif(test2){ //insert into database blar blar insert data into databse
}else{ Echo" error one of the test filed try again"; }
What I want to know is before test 2 is run, I need to search the database and see if the data is already entered into the database. And if it is dont insert the data but give error message what the best way of doing this ??
Last edited by chrishirst; 04-08-2010 at 05:49 PM..
|