I have a stored procedure using MySQL which spits out two tables. For example:
DELIMITER //
CREATE PROCEDURE MyStoredProcedure(IN input VARCHAR(4))
SELECT * FROM BLAH;
SELECT * FROM MAH;
END //
How do I process this in PHP? Normally, I've just dealt with one table, so it would be something like this:
$INPUT = mysql_real_escape_string($_POST['input']);
$sql = "CALL MyStoredProcedure('{$INPUT}')";
$res = $db->query($sql);
foreach ($res as $row) {
echo "<td>{$row->Column1}</td>";
}
But now there are two tables. So how can I get these two tables via PHP?