当前位置:主页 >> Mysql >> 正文
php调用mysql存储过程返回结果集的代码
阅读:1022 输入:2015-10-20 07:09:05
<?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 />';
}