setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch (Exception $e) { die('Erreur : '.$e->getMessage()); } // requêtes SQL class SQL { // créer les tables si elles n'existent pas encore static function create_tables() { //$db->exec("CREATE TABLE IF NOT EXISTS matable (ID INTEGER PRIMARY KEY, champ1 INTEGER, champ2 TEXT);"); // // } }