echo "<p>";

$sql="select distinct CaseID from Responses where rOK=0 and isDeleted=0 order by CaseID";

$resq=GetResultset($sql);
if(!$row = mysql_fetch_assoc($resq))
   {
       echo "<h3>There are no fail-edit cases</h3>";
       return false;
   }
else
   {
      echo "<br><br><h4>Select a Subject from the list below</h4><center>";
      echo "<select name=CaseSelect>";
      echo "<option value=``> </option>";
      do
	{
	    echo "<option value=" , $row["CaseID"] , ">" , $row["CaseID"] , "</option>";
	}

      while ($row = mysql_fetch_assoc($resq));

      DisConnect();

      echo "</select> ";
      echo "<p>";
   }
