"depot projets 2019"

This commit is contained in:
JunkJumper
2020-05-01 20:56:26 +02:00
parent 83ebf9a87c
commit 6a1ce75149
32 changed files with 1080 additions and 0 deletions

12
TD8/ajoutEntree.php Normal file
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();