her i am trying to add a member to a club but before that i want to check if member is already in database or not
thanks for help inadvance
mysql_select_db("bday");
$result = mysql_query("select * from customers where name = '$name' and last = '$last' and month = '$month' and day = '$day'");
if(mysql_num_rows($result)> 0 )
print " Member allready in the database.\n";
exit;
$result = mysql_query ( "insert into customers (name, last, email, street, city, zip, state, phone, month, day, year, customerid) values
('$name', '$last', '$email', '$street', '$city', '$zip', '$state', '$phone', '$month', '$day', '$year', '' )");