
Forum » » Le coin des codeurs » » [Résolu] - requete quiz alat
Posté : 18-06-2005 11:18 
opentable();
$result=mysql_query("select categorie from ".$NPDS_Prefix."quiz_categorie");
echo "<TABLE WIDTH=\"100%\" CELLSPACING=\"2\" CELLPADDING=\"2\" BORDER=\"0\"><TR><TD CLASS=\"HEADER\">\n";
echo quiz_translate("Quizz")."</td><TD CLASS=\"HEADER\">".quiz_translate("Note")."</td><TD CLASS=\"HEADER\">".quiz_translate("You already answered this quizz the")."</td></tr>";
while (list($categorie) = mysql_fetch_row($result)) {
$rowcolor=tablos();
echo "<tr $rowcolor><td>$categorie</td><td></td><td>< /td></TR>";
}
echo "</table>";
closetable();
J'ai essayé d'intégrer après le $rowcolor un result2 :
opentable();
$result=mysql_query("select categorie from ".$NPDS_Prefix."quiz_categorie");
echo "<TABLE WIDTH=\"100%\" CELLSPACING=\"2\" CELLPADDING=\"2\" BORDER=\"0\"><TR><TD CLASS=\"HEADER\">\n";
echo quiz_translate("Quizz")."</td><TD CLASS=\"HEADER\">".quiz_translate("Note")."</td><TD CLASS=\"HEADER\">".quiz_translate("You already answered this quizz the")."</td></tr>";
while (list($categorie) = mysql_fetch_row($result)) {
$rowcolor=tablos();
$result2=mysql_fetch_array(mysql_query("s elect reponsesjustes, nbquestion, dateheure, categorie from ".$NPDS_Prefix."quiz_visiteur where categorie='$id' AND nomvisiteur='$cookie[1]'"));
echo "<tr $rowcolor><td>$categorie</td><td></td>$result2[repon sesjustes]<td>$result2[$dateheure]</td></TR>";
}
echo "</table>";
closetable();
Cet article provient de NPDS REvolution 16
https://lab.grottes-et-karsts-de-chine.org/viewtopic.php?topic=16944&forum=5