PHP5 using the MS SQL functions, they have the same for mysql_ and other I think.:
Code:
$this->queryarray = mssql_query($sql);
if(mssql_num_rows($this->queryarray)>1){
while($row = mssql_fetch_assoc($this->queryarray)){
<do stuff>
mssql_next_result($this->queryarray);
}
}