echo "<br><br><center><h2>Edit Resolution</h2>";
echo "<p>";

$CaseId=$_SESSION[`CaseId`];

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

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

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

DisConnect();

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