Hi
I have another issue in Update. Could not be updated. pls help me
if (isset($_POST['update']) && $_POST['update'] != "" )
{
$id=$_POST["id"];
$name = $_POST["name"];
$address = $_POST["address"];
$tel = $_POST["tel"];
$fax = $_POST["fax"];
$email = $_POST["email"];
$website = $_POST["website"];
$type = $_POST["type"];
try
{
$sql="UPDATE bk_customer SET name='$name',address='$address', tel='$tel',fax='$fax',email='$email', website='$website',type='$type' WHERE id='$id'";
$result = mysqli_query($con,$sql) ;
// $result=mysqli_fetch_assoc($con,$sql);
}
catch (Exception $ex)
{
echo $e->getMessage() . "\n";
file_put_contents('PDOErrors.txt', $e->getMessage(), FILE_APPEND);
exit();
}
}