codice:
<?
$query6 = "SELECT * FROM risposte WHERE Utente = '$IDAccount' AND Test = '$IDTest2' ORDER BY ID";
$result6 = mysql_query($query6, $db);
while ($row6 = mysql_fetch_array($result6)) {
$DomandaFatta = $row6["Domanda"];
$query4 = "SELECT * FROM domande WHERE Test = '$IDTest2' AND ID != '$DomandaFatta'";
$result4 = mysql_query($query4, $db);
$row4 = mysql_fetch_array($result4);
$IDDomanda = $row4["ID"];
$TestoDomanda = $row4["Domanda"];
echo "Question $Domanda/$TotDom
$TestoDomanda";
?>
<form action="pag.php?Pag=res_question" method="post" name="Question">
<input name="Quest" type="hidden" value="<? echo $IDDomanda ?>" />
<?
$query5 = "SELECT * FROM multiple WHERE Domanda = '$IDDomanda' ORDER BY ID";
$result5 = mysql_query($query5, $db);
$TotMult = mysql_num_rows($result5);
if ($TotMult > 0) {
echo "<ul style=\"list-style:none\">";
while ($row5 = mysql_fetch_array($result5)) {
$IDMult = $row5["ID"];
$TestoMult = $row5["Testo"];
echo "[*]<input type=\"radio\" name=\"Mult\" value=\"$IDMult\" /> $TestoMult";
}
}
?>
<center>
Texte
<textarea name="Text" cols="35" rows="7"></textarea>
<input name="Envoyer" type="submit" value="Envoyer" /> <input name="Supprimer" type="reset" value="Supprimer" />
</center>
</form>
<?
}
?>