Example of stored procedure in mysql/php

By | July 21, 2014

DELIMITER $$
CREATE PROCEDURE get_employee()
BEGIN
SELECT *
FROM employee;
END $$

above query will create stored procedure through you phpmyadmin.you can see the created stored procedure inside the Routines tab.

in php code use the below code to access the Store procedure