Hello, In MySQL I have created a stored procedure like so
CREATE PROCEDURE countnames(OUT total_count INT(2))
SELECT COUNT(*) INTO total_count from table where name = 'John';
In MySQL I can also call it out like so
SELECT @total_count AS final_total;
But I am not sure how to call it out in PHP. Is anybody able to help please?