Esempio n. 1
0
File: Orm.php Progetto: LeoPelan/ORM
 public static function init($host, $db, $user, $password)
 {
     self::$connexion = new PDO('mysql:host=' . $host . ';dbname=' . $db . ';charset=UTF8;', $user, $password);
     self::$connexion->query("SET NAMES utf-8;");
 }