Only set the school if the school is posted through, this way we dont whipe out a students school.

-This line, and those below, will be ignored--

M    student_editor.php
This commit is contained in:
james 2008-03-20 16:28:50 +00:00
parent bb4997548c
commit 45a1bdd1e4

View File

@ -95,10 +95,11 @@ if($_POST['action']=="save")
{
$schoolquery="";
}
else
{
else if($_POST['schools_id'][$x]) {
$schoolquery="schools_id='".mysql_escape_string(stripslashes($_POST['schools_id'][$x]))."', ";
}
else
$schoolquery="";
//UPDATE existing record