Subversion Repositories eFlore/Applications.cel

Compare Revisions

Regard whitespace Rev 2143 → Rev 2144

/trunk/jrest/lib/Bdd2.php
18,7 → 18,7
const SQL_RETOUR_COLONNE = 'Column';
const SQL_RETOUR_BRUT = 'Raw';
 
function __construct($config, $base = 'database_cel') {
public function __construct($config, $base = 'database_cel') {
$cfg = $config[$base];
// ATTENTION : la connexin à la bdd peut échouer si l'host vaut localhost. Utiliser 127.0.0.1 à la place.
$dsn = $cfg['phptype'].':dbname='.$cfg['database'].';host='.$cfg['hostspec'];
101,7 → 101,6
* @param unknown_type $requete
*/
public function executer($requete) {
$resultat = false;
try {
$resultat = $this->exec($requete);
if ($resultat === false) {