|
Nominate a student for "The Student of the Month" for your school. Nominations can be made by school owners or head instructors. The student of the month will be displayed with your school name for
current month.Student and School Added!!");
}
if ($schoolKey != 0) {
msql_connect();
$entryDate = date("d-M-Y");
$field4 = "";
$field5 = NULL;
$student = addslashes($student);
$comment = addslashes($comment);
$currentMonth = date("m");
$destinitionFileName = './../f'.$currentMonth.$image_size.$image_name;
$imageName = 'f'.$currentMonth.$image_size.$image_name;
$checkForImage = eregi("image", $image_type);
if (!$checkForImage) {
print (" The image is not a gif, jpg, or png file! The file will be deleted.");
unlink ($image);
$imageName = "";
} ELSE {
if (($image_size != 0) && ($image_size <= 40960)) {
$fileMove = copy($image, $destinitionFileName);
unlink ($image);
}
}
$query = "INSERT INTO school_som VALUES( $schoolKey, '$student', '$imageName', '$entryDate', '$comment', '$field4', $field5)";
$updateResult = msql("registry",$query);
echo msql_error();
if ($updateResult) {
print ("
Student of the Month Added!
");
if ($image != "" ) {
print (" |
Image information:
Name = $image_name
Type = $image_type
Size = $image_size B
|
");
if (($image_size == 0) || ($image_size > 40960)) {
print ("Error: Maximum file size exceeded.
File must be less than 40960 bytes.
File was not stored./b>.
");
}
}
print (" |
Go To Student of the Month Page | |
");
} ELSE {
print ("");
}
} ELSE {
if ($schoolShortNameOther == "") {
print ("
You must choose a school.
If your school is not listed, add it with the form below.
| ");
}
}
}
?>
|