GIF89a
<?php
include_once('db.php');
session_start();
if(isset($_POST['submit']))
{
$id=$_POST['id'];
$namez=$_POST['name'];
$name=str_replace("'","\'",$namez);
$insert = $db->query("update p2 set name='$name' where id='$id'");
if($insert){
header("location:Gallery-Title_view.php");exit;
}else{
echo "File upload failed, please try again.";
}
header("location:Gallery-Title_view.php");exit;
//header("location:../detailview3.php.php?employeeid=$editid");exit;
/*"(EmpId,EmployeeId,FirstName,MiddleName,LastName,Birthdate,Gender,Address1,Address2,Address3,CityId,Mobile,Email,Password,AadharNumber,MaritalStatus,PositionId,CreatedBy,CreatedDate,ModifiedBy,ModifiedDate,JoinDate,LeaveDate,LastLogin,LastLogout,StatusId,RoleId,ImageName,MacAddress)";*/
}
?>