bd
continuous-integration/drone/push Build is passing Details

ServeurDeTest
nathan boileau 2 years ago
parent 7596dd62e0
commit cff69911fb

@ -14,7 +14,7 @@ $rep = __DIR__ . '/../';
// $password = 'p'; // $password = 'p';
// SQULITE3 // SQULITE3
$dsn = 'sqlite:host=https://sancy.iut.uca.fr/~lafourcade/WEB/Model/; dbname=scripted.db'; $dsn = 'sqlite:https://sancy.iut.uca.fr/~lafourcade/WEB/Model/scripted.db';
$user = null; $user = null;
$password = null; $password = null;

@ -16,3 +16,11 @@ class Connection extends PDO {
return $this->stmt->fetchall(); return $this->stmt->fetchall();
} }
} }
// class Connection extends SQLite3
// {
// function __construct()
// {
// $this->open('./Model/sripted.db');
// }
// }

@ -2,11 +2,14 @@
class UserController class UserController
{ {
// function __construct(){
// $
// }
private Connection $con; private Connection $con;
function __construct() { function __construct() {
global $dsn, $user, $password; global $dsn, $user, $password;
$this->con=new Connection($dsn);; $this->con=new Connection($dsn);
try{ try{
global $rep, $vues, $error; global $rep, $vues, $error;
$action=$_REQUEST['action']; $action=$_REQUEST['action'];

Loading…
Cancel
Save