Hello,
This is a bit basic but just wanted to check with someone that its correct :o
If the two variables are BOTH not empty then the INSERT should happen, otherwise skip it.
if(!$N_contact1 == "" && !$N_email1 == ""){
$sql = "INSERT INTO freinds (f_name, f_email, up_name, up_email, create_date)
VALUES ('$N_contact1','$N_email1','$N_contact','$N_email','$today')";
mysql_query($sql)
or die("could not execute CLIENT INSERT query");
} // end if
Not sure about my if stmt.
Thanks for any guidance.