im trying to add an option of radio buttons to mysql table this is what i have so far but it says theres and error on the first like of
else if(NOT NULL($freshman)){
$grade="freshman";
}else{
if(NOT NULL($sophomore)){
$grade="sophomore";
}else{
if(NOT NULL($junior)){
$grade="junior";
}else{
if(NOT NULL($senior)){
$grade="senior";
}
}
and my html is
<label>
<input name="RadioGroup1" value="<?php echo "$freshman"; ?>" type="radio">
Freshman</label>
<label>
<input name="RadioGroup1" value="<?php echo "$sophomore"; ?>" type="radio">
Sophomore</label>
<label>
<input name="RadioGroup1" value="<?php echo "$junior"; ?>" type="radio">
Junior</label>
<label>
<input name="RadioGroup1" value="<?php echo "$senior"; ?>" type="radio">
Senior</label>
the script to add it to the table is
$sql =mysql_query("INSERT INTO loginwa_user ( `userid` , `username` , `fname` , `lname` , `passwd` , `email` , `fcode` , `nl` , `adddate`, `ip` , `grade`)
VALUES ( '', '$user_name', '$first_name', '$last_name', '$pass', '$reg_email', '$code', '$nl',NOW(), '$ip' , '$grade')");