diff --git a/register_participants_students.php b/register_participants_students.php index 1dfdbede..36de598b 100644 --- a/register_participants_students.php +++ b/register_participants_students.php @@ -47,10 +47,11 @@ if($_POST['action']=="save") { //INSERT new record $dob=$_POST['year'][$x]."-".$_POST['month'][$x]."-".$_POST['day'][$x]; - mysql_query("INSERT INTO students (registrations_id,firstname,lastname,email,address,city,province,postalcode,phone,dateofbirth,grade,schools_id,tshirt,medicalalert,foodreq,teachername,teacheremail,year) VALUES (". + mysql_query("INSERT INTO students (registrations_id,firstname,lastname,sex,email,address,city,province,postalcode,phone,dateofbirth,grade,schools_id,tshirt,medicalalert,foodreq,teachername,teacheremail,year) VALUES (". "'".$_SESSION['registration_id']."', ". "'".mysql_escape_string(stripslashes($_POST['firstname'][$x]))."', ". "'".mysql_escape_string(stripslashes($_POST['lastname'][$x]))."', ". + "'".mysql_escape_string(stripslashes($_POST['sex'][$x]))."', ". "'".mysql_escape_string(stripslashes($_POST['email'][$x]))."', ". "'".mysql_escape_string(stripslashes($_POST['address'][$x]))."', ". "'".mysql_escape_string(stripslashes($_POST['city'][$x]))."', ". @@ -78,6 +79,7 @@ echo mysql_error(); mysql_query("UPDATE students SET ". "firstname='".mysql_escape_string(stripslashes($_POST['firstname'][$x]))."', ". "lastname='".mysql_escape_string(stripslashes($_POST['lastname'][$x]))."', ". + "sex='".mysql_escape_string(stripslashes($_POST['sex'][$x]))."', ". "email='".mysql_escape_string(stripslashes($_POST['email'][$x]))."', ". "address='".mysql_escape_string(stripslashes($_POST['address'][$x]))."', ". "city='".mysql_escape_string(stripslashes($_POST['city'][$x]))."', ". @@ -189,6 +191,21 @@ else if($newstatus=="complete") echo "