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.
20 lines
397 B
20 lines
397 B
<?php
|
|
|
|
require_once('../BDD/SqliteDb.php');
|
|
require_once('controleur/Controleur.php');
|
|
|
|
|
|
$db = new SqliteDb();
|
|
|
|
if(isset($_GET['modif'])){
|
|
$db->supprimerRequete($_GET['num'], $_GET['tp']);
|
|
}
|
|
|
|
if ($_GET["type"] == 'requete'){
|
|
|
|
$db->ajouterRequete($_GET['bdd'],$_GET['tp'],$_GET['num'],$_GET['consigne'], $_GET['reponse']);
|
|
}
|
|
//require_once('index.php');
|
|
header("Location: index.php");
|
|
|