skip to Main Content

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 2014 Cannot execute queries while there are pending result sets – Phpmyadmin

$query = "CALL GetAllCategories()"; $stmt = $pdo->prepare($query); $stmt->execute(); $categories = $stmt->fetchAll(); I use this code to get categories from DB using stored procedures, no problems with that, everything works fine. This is GetAllCategories() procedures: DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `GetAllCategories`()…

VIEW QUESTION
Back To Top
Search