sql server - Retrieve all set row from stored procedure in codeigniter using sqlsrv -


    function sp_home()     {         $query = $this->sqlsrvr->query("sp_home");          $a=0;         foreach($query->result() $row) {            $data['latestnews'][$a] = $row;            $a++;         }         sqlsrv_next_result();         $b=0;         foreach($query->result() $row) {            $data['allnews'][$b] = $row;            $b++;         } 

}

both foreach return first row set, sqlsrv_next_result() not working in codeigniter. please


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -