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';
// 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;
$password = null;

@ -15,4 +15,12 @@ class Connection extends PDO {
public function getResults(): array {
return $this->stmt->fetchall();
}
}
}
// class Connection extends SQLite3
// {
// function __construct()
// {
// $this->open('./Model/sripted.db');
// }
// }

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

Loading…
Cancel
Save