Skip to content
Snippets Groups Projects
Commit b8f8c28b authored by Matthieu Guffroy's avatar Matthieu Guffroy
Browse files

debug

parent f0dbe901
No related branches found
No related tags found
No related merge requests found
......@@ -14,15 +14,12 @@ class Objet
public static function getAll()
{
$className = get_called_class();
echo $className;
$dbName = lcfirst($className);
$bdd = new Db();
$result = Array();
echo $dbName . "<br />";
$requete_prepare = $bdd->db->prepare("SELECT * FROM :table"); // on prépare notre requête
$requete_prepare->execute(array( 'table' => $dbName ));
$requete_prepare = $bdd->db->prepare("SELECT * FROM client"); // on prépare notre requête
$requete_prepare->execute(); //array( 'table' => $dbName ));
while($ligne = $requete_prepare->fetch(PDO::FETCH_ASSOC)) {
echo print_r($ligne, true) . "<br />";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment