<?php
include_once("Config.php");
$id=$_REQUEST['txt_id'];
$uname = $_REQUEST['txt_user'];
$Pwd = $_REQUEST['txt_pwd'];
//$cnfpwd = $_POST['txt_cnfpwd'];
$adrs = $_REQUEST['txt_add'];
$state = $_REQUEST['state'];
$city = $_REQUEST['city'];
$email= $_REQUEST['txt_email'];
$date= $_REQUEST['txt_date'];
$phone = $_REQUEST['txt_phone'];
$gender= $_REQUEST['gender'];
$Hobby=implode(",",$_REQUEST['Hobby']);
$photo=$_FILES['f1']['name'];
move_uploaded_file($_FILES['f1']['tmp_name'],"upload/$photo");
$update= "UPDATE registration SET userId='".$id."',userName ='".$uname."',password='".$Pwd."', Address='".$adrs."', state='".$state."', city= '".$city."',email='".$email."', date='".$date."',phoneNo='".$phone."',gender='".$gender."',Hobby='".$Hobby."',Photo='".$photo."'
WHERE userId='".$id."'" or die(mysql_error());
$query=mysql_query($update);
header("Location:emp.php");
?>
include_once("Config.php");
$id=$_REQUEST['txt_id'];
$uname = $_REQUEST['txt_user'];
$Pwd = $_REQUEST['txt_pwd'];
//$cnfpwd = $_POST['txt_cnfpwd'];
$adrs = $_REQUEST['txt_add'];
$state = $_REQUEST['state'];
$city = $_REQUEST['city'];
$email= $_REQUEST['txt_email'];
$date= $_REQUEST['txt_date'];
$phone = $_REQUEST['txt_phone'];
$gender= $_REQUEST['gender'];
$Hobby=implode(",",$_REQUEST['Hobby']);
$photo=$_FILES['f1']['name'];
move_uploaded_file($_FILES['f1']['tmp_name'],"upload/$photo");
$update= "UPDATE registration SET userId='".$id."',userName ='".$uname."',password='".$Pwd."', Address='".$adrs."', state='".$state."', city= '".$city."',email='".$email."', date='".$date."',phoneNo='".$phone."',gender='".$gender."',Hobby='".$Hobby."',Photo='".$photo."'
WHERE userId='".$id."'" or die(mysql_error());
$query=mysql_query($update);
header("Location:emp.php");
?>