Skip to main content
 首页 » 编程设计

php执行多个存储过程

2022年07月19日145jpfss

使用公共连接文件形式

 include_once 'inc/conni.php';

    $result = mysqli_query($conni, "call proc_test()");
    while( $row = mysqli_fetch_array($result) ){
            var_dump($row);
    }
    mysqli_free_result($result);
    mysqli_next_result($conni);
echo "11111";   
    $result = mysqli_query($conni, "call proc_test()");
    while( $row = mysqli_fetch_array($result) ){
        var_dump($row);
    }
    mysqli_free_result($result);
    mysqli_next_result($conni);


本文参考链接:https://www.cnblogs.com/xihong2014/p/5527496.html