Stored procedures few rowset example:some_file.phpfunction proc() {global $global;$db_connect_list = array('site');SQLinit($db_connect_list);if(isset($global)){return;}SQL('CALL `procedure`();');while($row=mysqli_fetch_assoc($global)){// do some}SQLnext();while($row=mysqli_fetch_assoc($global)){// do some}SQLnext();while($row=mysqli_fetch_assoc($global)){// do some}SQLclose($db_connect_list);}?>config.php$global = array('host'=>'localhost', 'user'=>'site', 'pass'=>'');?>engine.phpfunction SQLinit($array_list){global $global;foreach($array_list as $set){if(!$global = mysqli_connect($global,$global,$global)){$global = 500;$global =…