You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
630 B

<?php
/*foreach ($_POST['supprimer'] as $type) {
if($type == "supprimer"){
echo 'test';
}
else echo 'nsss';
}*/
require_once('SqliteDb.php');
$db = new SqliteDb();
for($i=1 ; $i<6 ;$i++){
if($_POST["".$i]=="supprimer"){
echo 'test';
$sqliteQuery = $db->prepare('DELETE FROM Correct WHERE numquestion= ? ');
$sqliteQuery->bindParam(1, $i);
$result = $sqliteQuery->execute();
$sqliteQueryF = $db->prepare('DELETE FROM FunctionCorrect WHERE numquestion= ? ');
$sqliteQueryF->bindParam(1, $i);
$result = $sqliteQueryF->execute();
}
}