<?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调用mysql存储过程返回结果集的代码
阅读:5472 输入:2015-10-20 07:09:05