sqlsrv_has_rows
sqlsrv_has_rows - Indicates whether the specified statement has rows
Manual
sqlsrv_has_rows(
resource$stmt ): bool
Indicates whether the specified statement has rows.
Parameters
- stmt
-
A statement resource returned by sqlsrv_query or sqlsrv_execute.
Return Values
Returns true if the specified statement has rows and false if the statement does not have rows or if an error occurred.