PHP sqlsrv query to database

后端 未结 4 2167
独厮守ぢ
独厮守ぢ 2021-02-13 18:10

I am migrated from MySQL to MS SQL Server, and trying to fetch all data from the routines table. I am connected but unsure how to fetch data with sqlsrv. This is how far I have

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-13 18:49

    Try this:

    while( $row = sqlsrv_fetch_array( $result, SQLSRV_FETCH_ASSOC) ) {
      var_dump($row);
    }
    
    sqlsrv_free_stmt($result);
    

提交回复
热议问题