📁 File Manager
🏠 /
/
home
/
u857492117
/
domains
/
mangaldaicollege.org
/
public_html
Dosya Düzenle: TeacheAddCode.php
<?php session_start(); include 'connect.php'; ?> <?php //error_reporting (0); $fullname = $_POST['name']; $Address = $_POST['add']; $email = $_POST['email']; $Phone = $_POST['phone']; $designation = $_POST['des']; $qualification = $_POST['quali']; $interest = $_POST['int']; $dept = $_POST['select']; $DOJ = $_POST['doj']; $hod = $_POST['hod']; $spz = $_POST['spz']; $r_id = $_POST['r_id']; $l_member = $_POST['l_member']; $name =basename( $_FILES['Tadd_P']['name']); $t_name= $_FILES["Tadd_P"]["tmp_name"]; $dir="upload"; if(move_uploaded_file($t_name,$dir.'/'.$name) ) { // echo "p"; } else { //echo "n"; } $pic= $dir."/".$name; $query = "insert into teacher VALUES (NULL,'$fullname','$Address','$email','$Phone','$designation','$qualification','$interest','$dept','$DOJ','$hod','$spz','$pic',0,'$r_id','$l_member')"; if(mysqli_query($con,$query)) { echo " Teacher Added "?><a href="Teacher_add.php"> Add More</a><?php ; }else { echo "Something wrong , may be email address already registerd" ; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Untitled Document</title> </head> <body> </body> </html>
💾 Kaydet
İptal