php调用mysql存储过程返回结果集
时间:2021-07-01 10:21:17
帮助过:21人阅读
- $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
'; - }
- ?>
|
存储过程, php, mysql