<?php
define('hostname','localhost',true);
define('username','root',true);
define('password','',true);
define('database','lob',true);
try
{
$bdd=new PDO('mysql:host='.hostname.';dbname='.database,username,password,array(PDO::ATTR_ERRMODE=> PDO::ERRMODE_EXCEPTION,PDO::ATTR_PERSISTENT => true));
}
catch(Exception $e)
{
die('Erreur:'.$e->getMessage());
}
?>
|