sqlsrv skips a row when returning a query

Use sqlsrv_has_rows(). This just returns whether there are any rows, but it doesn’t fetch one of them.

while (!sqlsrv_has_rows($result)) {
    sqlsrv_next_result($result);
}

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top