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(); $sql ="INSERT INTO trainingmeeting(name,mobile,email,type,nbp,cafe,comt,status) VALUES(:name, :mobile, :email, :type, :nbp, :cafe, :cmt,'0')"; $query= $dbh -> prepare($sql); $query-> bindParam(':name', $name, PDO::PARAM_STR); $query-> bindParam(':mobile', $mobile, PDO::PARAM_STR); $query-> bindParam(':email', $email, PDO::PARAM_STR); $query-> bindParam(':type', $type, PDO::PARAM_STR); $query-> bindParam(':nbp', $nbp, PDO::PARAM_STR); $query-> bindParam(':cafe', $cafe, PDO::PARAM_STR); $query-> bindParam(':cmt', $cmt, 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 : Meeting/Training