while ($r=mssql_fetch_array($sql)){
echo $r["userID"];
if($r=mssql_fetch_array($sql)) // 再执行一次
  echo $r["userID"];
}