I am fairly new to SQL-Server and PHP, but I\'m trying to get the total number of rows in my table with PHP.
This is the code I am using, it connects just fine, however
Check it:
http://www.php.net/manual/es/function.sqlsrv-num-rows.php
"sqlsrv_num_rows() — Retrieves the number of rows in a result set"
sqlsrv_num_rows()
Like:
$row_count = sqlsrv_num_rows( $stmt); echo 'numRows: ',$row_count;