"refonte debut annee"
This commit is contained in:
12
2019-2020/TD8/ajoutEntree.php
Normal file
12
2019-2020/TD8/ajoutEntree.php
Normal 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();
|
Reference in New Issue
Block a user