How to call a stored procedure within another stored procedure (PHP and mysqli)
问题 I am struggling to call a stored procedure within another stored procedure. Like it is now the stored procedure never return the SELECT statement back as a result to the mysqli call in PHP (but it works fine in MySQL workbench). DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `new_bid`(IN bid_in decimal(6,2), IN ticker_in varchar(5), IN share_amount_in BIGINT) BEGIN DECLARE company_id_var INT; DECLARE highest_bid BIT; DECLARE generated_bid_id BIGINT; SET company_id_var = (SELECT ID