PDO::ERRMODE_WARNING));error_reporting(E_ALL); $GLOBALS['bdd'] = new PDO('mysql:host=mysql.hostinger.fr;dbname=u890869027_bcom;charset=utf8', 'u890869027_bcom', '*******************',array(PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING));error_reporting(E_ALL); //$GLOBALS['bdd'] = new PDO('mysql:host=fdb6.awardspace.net;port=3306;dbname=2516148_bcom;charset=utf8', '2516148_bcom', '*******************'); }catch(Exception $e){ die ('Erreur : ' . $e->getMessage()); } //TODO in the classes , do more test of exists in setters include_once 'clazz/2/SQLProcessingException.class.php'; include_once 'clazz/2/Utility.class.php'; include_once 'clazz/2/Langage.class.php'; include_once 'clazz/2/Membre.class.php'; include_once 'clazz/2/Discussion.class.php'; include_once 'clazz/2/Message.class.php'; include_once 'clazz/2/Projet.class.php'; include_once 'clazz/2/Article.class.php'; //TODO Use class's consts for file names include_once 'clazz/2/Version.class.php';