Add Faculty

0) { $error_document1 = $_FILES["image"]["error"]; } else { if($_FILES['file1']['image'] > 15000000) { print "Error : The image you tried to upload is too large , its need to be Max. 500Kb please try again !"; } else { $image_size = getimagesize($_FILES['file1']['tmp_name']); if($image_size[0] > 1000000 or $image_size[1] > 9000000) { print "Error : The image you tried to upload is too large , its need to be Max. 400 X 300 Px. please try again !"; } else { unlink($folder.$deleteddbimagename); $temp = explode(".", $_FILES["file1"]["name"]); $filename=current($temp); $ext = end($temp); $newname1= "TL".time().".$ext"; move_uploaded_file($_FILES["file1"]["tmp_name"] , "$folder".$newname1); } } } } if(file_exists($_FILES['file']['tmp_name'])) { $temp = explode(".", $_FILES["file"]["name"]); $extension = end($temp); $folder = "../admin/images/"; if ($_FILES["file"]["error"] > 0) { $error_document1 = $_FILES["image"]["error"]; } else { if($_FILES['file']['image'] > 15000000) { print "Error : The image you tried to upload is too large , its need to be Max. 500Kb please try again !"; } else { $image_size = getimagesize($_FILES['file']['tmp_name']); if($image_size[0] > 1000000 or $image_size[1] > 900000) { print "Error : The image you tried to upload is too large , its need to be Max. 400 X 300 Px. please try again !"; } else { unlink($folder.$deleteddbimagename); $temp = explode(".", $_FILES["file"]["name"]); $filename=current($temp); $ext = end($temp); $newname= "TL".time().".$ext"; move_uploaded_file($_FILES["file"]["tmp_name"] , "$folder".$newname); $passval = array('cat_id' => $category_id,'name' => $name ,'fname' => $fname,'mname' => $mname,'dob' => $dob,'Desination' => $Desination,'photo' => $newname,'exp_detail' => $exp_detail,'secrollno' => $secrollno,'sec_year' => $sec_year,'sectotal' => $sectotal,'sec_omarks' => $sec_omarks,'sec_percen' => $sec_percen,'sin_rollno' => $sin_rollno,'sin_year' => $sin_year,'sint_marks' => $sint_marks,'sino_marks' => $sino_marks,'sin_percen' => $sin_percen,'batch_id' => $batch_id,'batch_rollno' => $batch_rollno,'batch_year' => $batch_year,'batch_total' => $batch_total,'batch_omarks' => $batch_omarks,'batch_percen' => $batch_percen,'master_id' => $master_id,'mast_rollno' => $mast_rollno,'mast_year' => $mast_year,'mast_total' => $mast_total,'mast_omarks' => $mast_omarks,'mast_percen' => $mast_percen,'net_id' => $net_id,'net_rollno' => $net_rollno,'net_year' => $net_year,'net_total' => $net_total,'net_omarks' => $net_omarks,'net_percen' => $net_percen,'phd_id' => $phd_id,'phd_rollno' => $phd_rollno,'phd_year' => $phd_year,'phd_total' => $phd_total,'phd_omarks' => $phd_omarks,'phd_percen' => $phd_percen,'phill_id' => $phill_id,'phill_rollno' => $phill_rollno,'phill_year' => $phill_year,'phill_total' => $phill_total,'phill_omarks' => $phill_omarks,'phill_percen' => $phill_percen,'file_type' => $newname1,'Subject' => $Subject); $db->insert('item',$passval); print "Success : faculty Successfully Registered !"; } } } } } $_SESSION['addaccnt'] = "E".rand(111111 , 999999); ?>
Name *
Father's Name *
Mother's Name *
DOB*
Desination*
Category Name
Subject*
Qualification*
Attech Qualification Documents PDF Candidate Image