Viewing file: Editdentis.php (1.16 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php session_start(); if (session_is_registered("valid_user")) { include("../include/FunctionDB.php"); ConnectDB(); // $Path = "../images"; if ( isset($Img1) ) if (copy($Img1,"$Path/$Img1_name")) { unlink ($Img1); $Img1 = "$Path/$Img1_name"; } $DateBirth = $_POST['mYear1']."-".$_POST['mMonth1']."-".$_POST['mDate1']; $Datetype = $_POST['mYear']."-".$_POST['mMonth']."-".$_POST['mDate']; $sql = " UPDATE dentis_tb SET Orderlist='$Orderlist',Dental_code='$Dental_code',First_name='$First_name',Name='$Name',Lastname='$Lastname',Name_eng='$Name_eng',Lastname_eng=' $Lastname_eng',Sex='$Sex',DateBirth='$DateBirth',Datetype='$Datetype',Religion='$Religion',Address='$Address',Img1='$Img1',ProvinceId='$ProvinceId',Phone_1='$Phone_1',Phone_2='$Phone_2',Email='$Email',Description_1='$Description_1',Description_2='$Description_2',Year_1='$Year_1',Flag='$Flag' WHERE Dentis_code ='$Dentis_code' "; $result = mysql_query($sql) or die("Update Error $sql".mysql_error()); header("Location:DentisList.php"); CloseDB(); ?> <?php } else { echo"<meta http-equiv=\"refresh\" content=\"3;URL=../login.php\">\n"; echo"Please Login "; } ?>
|