before you mark my question duplicate this is my last resort .I have tried every possible syntax there is no error but i cant update the table , although I can insert into table but cant update the content already present. config.php is used to make connection with db.
<html>
<head>
<title>
Thank You FOR Entering Data !!
</title>
</head>
<style>
div {
width:100%;
position: absolute;
bottom:0;
}
img {
position: relative;
display: block;
float: right;
}
</style>
<body background="wall.jpg">
<font face="WenQuanYi Micro Hei Mono" color="white"><b>
<h1>Thank You For Entering Data</h1>
<?php
include("config.php");
// Data coming into form via POST
if ($_POST) {
$empide = $_POST["empid"];
$name = $_POST["name"];
$address = $_POST["address"];
$pnumber = $_POST["pnumber"];
$email = $_POST["email"];
$gender = $_POST["gender"];
if ($con) {
echo nl2br("empid= $empide \nNAME = $name\n Address = $address \n Phone Number = $pnumber \n Email = $email \n Gender = $gender ");
echo $empide;
//$abc=mysqli_query($con,"INSERT INTO `employee` (`name`, `address`, `pnumber`, `email`,`gender`) VALUES ('$name', '$address', '$pnumber', '$email','$gender') ;");
$query = mysqli_query($con, "UPDATE 'employee' SET 'name' = '$name', 'address' = '$address', 'email' = '$email', 'pnumber' = '$pnumber', 'gender' = '$gender' WHERE 'employee'.'empid' = '$empide';");
} else {
echo "Unable to make connection with your data base";
}
}
?>
<right>
<div>
<a href="index.php"><img src="home.png" width="110" height="110"></a>
</div>
</right>
</body>
</html>