Vous êtes connecté en tant que anonymous Se Deconnecter
bdd = new PDO(DSN_FICHES, USER_FICHES, PASS_FICHES); break; case 'abitop': $this->bdd = new PDO(DSN_ABITOP, USER_ABITOP, PASS_ABITOP); break; default: $this->bdd = new PDO(DSN_FICHES, USER_FICHES, PASS_FICHES); } } public function faireUneRequete($sql) { $req = $this->bdd->query($sql, PDO::FETCH_ASSOC); return $req; } public function creerTableau($res){ $tab = array(); foreach($res as $key => $row){ $tab[$key] = $row; } return $tab; } }