I have a command like..
$Res = $db->ExecSQL($sQry, $param);
while ($row = sqlsrv_fetch_array($Res)){
..
..
}
and i wanted to call again the
while ($row = sqlsrv_fetch_array($Res)){
..
..
}
without calling again the “$Res = $db->ExecSQL($sQry, $param);”
because it has no result. there must be a reset like pointing it to the first record. but i dont know how. any suggestion?
There is a php function for setting the pointer try:
Source: http://php.net/manual/es/function.mssql-data-seek.php