The situation of sqlsrv_fetch result null

php reads the query result set with sqlsrv_fetch (). There are only three records in the table, but four times of fetch execution does not return false, but the fifth time returns false,. Why not false the fourth time (the test found that the fourth time is NULL and the fifth time is bool (false))? Thank you!

4
if(  sqlsrv_fetch (  $stmt  ) ===  false ) {
     die(  print_r (  sqlsrv_errors (),  true ));
}
$name  =  sqlsrv_get_field (  $stmt ,  0 );
echo  " $name : " ;
$comment  =  sqlsrv_get_field (  $stmt ,  1 );
echo  $comment ;echo "<hr>";

3

4false

Jan.20,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b8df-34652.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b8df-34652.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?