Skip to content
Snippets Groups Projects
Commit 84dcc75a authored by nicrausaz's avatar nicrausaz
Browse files

working

parent 79d8b422
No related merge requests found
......@@ -3,4 +3,8 @@
$db_user = '';
$db_pass = '';
$pdo = new PDO('mysql:host=localhost;dbname=canap_dev', $db_user, $db_pass);
$pdo->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
// for dev
// $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
?>
\ No newline at end of file
......@@ -337,6 +337,7 @@ function deletePostulation ($pdo, $id, $sciper, $rep1, $rep2) {
$query->execute();
// TODO: Delete files on server ?
header('Location: viewpostulation.php');
}
#endregion
?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment