retrieving_multiple_rows.php
<?php
$db = new mysqli("localhost", "root","", "mydatabase");
$result = $db->query("CALL get_employees()");
while (list($employee_id, $name, $position) = $result->fetch_row()) {
echo "$employeeid, $name, $position <br />";
}
?>
Related examples in the same category