I am studying Crud creation with Php and Bootstrap , and when the menu_admin file is opened in the browser he gives this error:
Warning: Invalid argument supplied for foreach () in C: \ xampp \ htdocs \ crud \ menu_admin.php on line 44
github link, who can help me thank you very much !!!
I changed what they said, but another problem appeared, would the query be failing?
Fatal error : Uncaught Error: Call to a member function fetchAll() on boolean in C:\xampp\htdocs\crud\menu_admin.php:45 Stack trace: #0 {main} thrown in C:\xampp\htdocs\crud\menu_admin.php on line 45