employee record using php not working..need help
This code is note working…please help
PHP Code:
if (isset($_POST[’submit1’])){
$emp_name=$_POST[’emp_name’];
$type=$_POST[’emp_type’];
$username=$_POST[’username’];
$password=$_POST[’password’];
$email_id=$_POST[’email_id’];
$staffNo=$_POST[’staffNo’];
$department=$_POST[’department’];
$contact=$_POST[’contact’];
$xtnsn=$_POST[’xtnsn’];
$dob=$_POST[’dob’];
$doj=$_POST[’doj’];
$bio=$_POST[’bio’];
$designG=$_POST[’designG’];
$emp_image=$_Files[’emp_image’][’name’];
$emp_tmp=$_Files[’emp_image’][’tmp_name’];
move_uploaded_file($emp_tmp,”images/emp/$emp_image”);
$login_id=0;
$insertemp=”insert into employee VALUES (”,’$emp_name’,’$contact’,’$dob’,’$doj’,’$email_id’,’$type’,’$login_id’,”,’$emp_image’,’$staffNo’,’$designG’,’$xtnsn’,’$bio’)”;
$in_pro=mysqli_query($conn,$insertemp);
if($in_pro){
echo “<script>alert(‘Employee Has been inserted!’)</script>”;
echo “<script>windows.open(‘newemp.php’,’_self’)</script>”;
}
}
?>
Original post by m.kevin.s
Leave a Reply
You must be logged in to post a comment.