This commit is contained in:
2021-01-06 15:34:37 +01:00
parent 1394656120
commit 84d743bad5
11 changed files with 184 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<?php
$connect = new mysqli($servername, $username, $password, $dbname);
if($connect->connect_errno){
die("Connexion impossible");
}else{
echo "Connexion OK";
}
$insert = "INSERT INTO ANNUAIRE (nom,prenom,numPost) VALUES (?,?,?)";
$stmt = $connect->prepare($insert);
$stmt->bind_param("sss",$_POST["nom"],$_POST["prenom"],$_POST["numpost"]);
$stmt->execute();