You can call a stored procedure using the following syntax:
$result = mysql_query('CALL procedure_name()');
Example Code :
<?php
//Connect to database
$connection = mysqli_connect("hostname", "user", "password", "db", "port");
//Run the store proc
$result = mysqli_query($connection,
"CALL StoreProcName") or die("Query fail: " . mysqli_error());
//Loop the result set
while ($row = mysqli_fetch_array($result)){
echo $row[0] . " - " . + $row[1];
}
?>