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.

21 lines
649 B

<?php
class SqliteDb extends SQLite3
{
function __construct()
{
$this->open('test.db');
//$this->createTable();
}
function createTable(){
$this->exec('DROP TABLE Correct');
$this->exec('CREATE TABLE Correct ( question STRING, reponse STRING)');
$this->exec("INSERT INTO Correct VALUES ('Trouver le nombre de matchs joués par Kevin Durant', '68')");
//$this->exec("INSERT INTO Correct VALUES ('Ceci est la question 2 ', 'r1')");
$this->exec("INSERT INTO Correct VALUES ('Lister le(s) joueur(s) ayant joué le plus de match pendant la saison ', 'r2')");
}
}