I would like to know how to use PDO with the eval () function, since the way I use is generating error.
$id = "return $bd->fetchAll();";
eval("$id");
eval("return $bd->fetchAll();");
ERRORS:
Notice: Undefined property: PDOStatement::$fetchAll in
Parse error: syntax error, unexpected ')' in