How to Get The Count or The Number Of Rows In A Result Set In PHP using ODBC Connection?

前端 未结 3 349
青春惊慌失措
青春惊慌失措 2021-01-14 01:53

While I build a web page in My PHP web application, My Connection works ok but When I want to get the count of rows of the SELECT Statement I used in my query, It gives me -

3条回答
  •  走了就别回头了
    2021-01-14 02:53

    in php.net:

    The easy way to count the rows in an odbc resultset where the driver returns -1 is to let SQL do the work:

    
    

提交回复
热议问题