Claro, tienes razón. Te comento que sale en parte la solución que con la forma vieja aparece, siguen estando estos mensajes:
Cita: Warning: Missing argument 3 for display_children(), called in D:\Users\BIOFUSIONART\Documents\Xampp\htdocs\prueb amenuNew8.php on line 15 and defined in D:\Users\BIOFUSIONART\Documents\Xampp\htdocs\prueb amenuNew8.php on line 7
Notice: Undefined variable: conn in D:\Users\BIOFUSIONART\Documents\Xampp\htdocs\prueb amenuNew8.php on line 8
Fatal error: Call to a member function prepare() on a non-object in D:\Users\BIOFUSIONART\Documents\Xampp\htdocs\prueb amenuNew8.php on line 8
¿Sabes qué? Voy a probar de colocarle al PDO algo de esta forma y te comento:
Cita: try {
$rs = $db->prepare('SELECT * FROM menu');
$rs->execute();
$foo = $rs->fetchAll();
} catch (Exception $e) {
die("Oh noes! There's an error in the query!");
}