prepare($sqlnoti); $querynoti-> bindParam(':notiuser', $sender, PDO::PARAM_STR); $querynoti-> bindParam(':notireciver',$reciver, PDO::PARAM_STR); $querynoti-> bindParam(':notitype', $notitype, PDO::PARAM_STR); $querynoti->execute(); $status='1'; $sql ="INSERT INTO privatedesk(name,profession,email,mobile,status) VALUES(:name, :profession, :email, :mobileno,'0')"; $query= $dbh -> prepare($sql); $query-> bindParam(':name', $name, PDO::PARAM_STR); $query-> bindParam(':profession', $profession, PDO::PARAM_STR); $query-> bindParam(':email', $email, PDO::PARAM_STR); $query-> bindParam(':mobileno', $mobileno, PDO::PARAM_STR); $query->execute(); $lastInsertId = $dbh->lastInsertId(); if($lastInsertId) { echo ""; echo ""; } else { $error="Something went wrong. Please try again"; } } ?>
Retour vers l'accueil

Reservation Private Desks