Banm on ti ed nan sa svp
~code~
<?php
if(isset($_POST['update'])){
if(!empty($_POST['phone_adm']) AND !empty($_POST['email_adm']) AND !empty($_POST['facebook']) AND !empty($_POST['instagram']) AND !empty($_POST['pinterest'])){
$phone_adm=htmlspecialchars($_POST['phone_adm']);
$email_adm=htmlspecialchars($_POST['email_adm']);
$facebook=htmlspecialchars($_POST['facebook']);
$instagram=htmlspecialchars($_POST['instagram']);
$pinterest=htmlspecialchars($_POST['pinterest']);
/* echo '<pre>';
print_r($_POST);
print_r($filename);
echo '</pre>';
die();*/
$queryc=$conn->prepare("SELECT id_contact FROM contact");
$queryc->execute();
$contact=$queryc->fetch();
$query=$conn->prepare("UPDATE contact SET id_adm=:id_adm, phone_adm=:phone_adm, email_adm=:email_adm, facebook=:facebook, instagram=:instagram, pinterest=:pinterest WHERE id_contact=:id_contact");
$query->execute(array('id_adm' => $_SESSION['adminuser'], 'phone_adm'=>$phone_adm, 'email_adm'=>$email_adm, 'facebook'=>$facebook, 'instagram'=>$instagram,'pinterest'=>$pinterest, 'id_contact'=>$contact['id_contact']));
}
}
?>
~/code~
Huguens Paul 20 Novembre 2022PHPNon résolu 7