//ads: ?> sqlsrv_num_rows() expects parameter 1 to be resource, boolean givenphpsql PHP Snippet 1:$stmt = sqlsrv_query( $conn, $sql, $params); if( $stmt === false ) { die( print_r( sqlsrv_errors(), true)); }