Why we use parameterized queries? Because we tell it what type of parameter should it accept (integer, string, ....).
prepare("SELECT * FROM table WHERE id= ?")
bind_param("i", $id) //only accepts integer
On the other hand we already telling a stored procedure what type of input should it accept
CREATE PROCEDURE select(IN id INT) //only int as id
BEGIN
SELECT * FROM table WHERE id =id;
END //
So what is the meaning writing a parameterized query after calling a stored procedure?
NOTE: Using mysql trying to use stored procedures. Not sure if I should delete my before parameterized queries.