name : update_contact.php
<?php 

include('../config/config.php');


$con_address       = $_POST['con_address'];
$con_tel           = $_POST['con_tel'];
$con_tel2          = $_POST['con_tel2'];
$con_mail          = $_POST['con_mail'];

$sql = "update contacts  SET  ct_address = '".$con_address ."',ct_tel = '".$con_tel."',ct_tel2 = '".$con_tel2."',ct_mail = '".$con_mail."' WHERE ct_id = 1";
$res = $conn->query($sql);
if($res === TRUE ){
    echo 1;
}else{
    echo 0;
}
?>

© 2024 UnknownSec