php调用mysql存储过程返回结果集
<?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 />'; } ?>
<?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 />'; } ?>