Edit your BIODATA.
Matric Number:: />
Other Names :: />
Last Name:: />
Gender::
Upload passport: >
Upload Birth certificate: >
Upload Secondary school Certificate: >
Upload Nd certificate(for HND students): >
Phone Number:: />
Email:: />
Date Of Birth:: />
Residential Address:: />
State of Origin:: />
Local Government Area:: />
Religion :: />
Parent's Fullname:: />
Relationship::
Parent's Phone Number:: />
Parent's Contact Address:: />
Have you ever been convicted by the Law court::
Have you been expelled before::
  />
working"; //exit(); $user=$_POST['user']; $pass=$_POST['pass']; $passb=$_POST['passb']; $fname=$_POST['fname']; $lname=$_POST['lname']; $gen=$_POST['gender']; $mail=$_POST['email']; $pno=$_POST['pno']; $dob=$_POST['dob']; $state=$_POST['state']; $lg=$_POST['lg']; $sod=$_POST['sod']; $pfname=$_POST['pfname']; $relation=$_POST['rel']; $ppno=$_POST['ppno']; $pcadd =$_POST['pcadd']; $law = $_POST['law']; $expel=$_POST['expel']; $radd = $_POST['radd']; $dept = $_POST['dept']; $getran = rand(1, 789); $image_tempname = $lname.$getran.$_FILES['image_filename']['name']; $image_tempnameb = $lname.$getran.$_FILES['image_filenameb']['name']; $image_tempnamec = $lname.$getran.$_FILES['image_filenamec']['name']; $image_tempnamed = $lname.$getran.$_FILES['image_filenamed']['name']; if ($chki != "disabled"){ if ($_FILES['image_filename']['name'] == null or $_FILES['image_filenameb']['name'] == null or $_FILES['image_filenamec']['name'] == null){ echo "
passport,ssce or birth certificate files not selected"; exit(); } if ($level =='HND 1' or $level =='HND 2' or $level =='HND 3'){ if ($_FILES['image_filenamed']['name'] == null){ echo "
HND must upload nd cert."; exit(); } } $today = date("Y-m-d"); //upload image and check for image type //make sure to change your path to match your images directory //$ImageDir ="C:/wampe/www/minieport/images/"; chdir('an'); //$ImageName = $ImageDir . $image_tempname; if (move_uploaded_file($_FILES['image_filename']['tmp_name'],$image_tempname) and move_uploaded_file($_FILES['image_filenameb']['tmp_name'],$image_tempnameb) and move_uploaded_file($_FILES['image_filenamec']['tmp_name'],$image_tempnamec) ) { //get info about the image being uploaded list($width, $height, $type, $attr) = getimagesize($image_tempname); switch ($type) { case 1: $ext = ".gif"; break; case 2: $ext = ".jpg"; break; case 3: $ext = ".png"; break; default: echo "Sorry, but the file you uploaded was not a GIF, JPG, or " . "PNG file.
"; echo "Please hit your browser's 'back' button and try again."; } //insert info into image table if ($cp == 0){ $insert = "INSERT INTO passport (user, imgcap,birthcert,sscecert) VALUES ('$name', '$image_tempname','$image_tempnameb','$image_tempnamec')"; $insertr = mysql_query($insert); } $insert = "UPDATE passport SET imgcap ='$image_tempname', birthcert='$image_tempnameb', sscecert='$image_tempnamec' WHERE user ='$name'"; $insertresults = mysql_query($insert) or die(mysql_error()); } if ($insertresults){ echo " images uploaded"; } else { echo "noooo"; exit(); } } if ($level =='HND 1' or $level =='HND 2' or $level =='HND 3'){ if (move_uploaded_file($_FILES['image_filenamed']['tmp_name'],$image_tempnamed)){ $insert = "UPDATE passport SET ndcert='$image_tempnamed' WHERE user ='$name'"; $insertresults = mysql_query($insert) or die(mysql_error()); } } $upd = "UPDATE retgrand SET biostat ='completed', fname='$fname', lname='$_POST[lname]',email='$_POST[email]', gender='$gen',pno ='$pno', dob='$dob',state='$_POST[state]',lga='$lg',sod= '$sod',pfname= '$pfname',relation='$relation',ppno= '$ppno',pcadd= '$pcadd',law='$law',expel='$expel',radd='$radd' WHERE user ='$name'"; $updq = mysql_query($upd) or die (mysql_error()); if ($updq){ echo "
Update Successful"; header("refresh:2; url= bio.php"); } else{ echo "
Update not Successful, please try again"; } } } ?>