输入banner图图片脚本导航/分类

php调用mysql存储过程返回结果集

  1. $db = new mysqli('localhost', 'root','', 'mydatabase');
  2. $result = $db->query('CALL get_employees()');
  3. while (list($employee_id, $name, $position) = $result->fetch_row()) {
  4. echo '$employeeid, $name, $position
    ';
  5. }
  6. ?>
存储过程, php, mysql