📁 File Manager
🏠 /
/
home
/
u857492117
/
domains
/
mangaldaicollege.org
/
public_html
Dosya Düzenle: TeacheAddCode_2.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']; $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 ('$_POST[null]','$fullname','$Address','$email','$Phone','$designation','$qualification','$interest','$dept','$DOJ','$hod','$spz','$pic')"; if(mysql_query($query,$con)) { 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