Update
This commit is contained in:
1 parent
77f58f193d
commit
136be864ec
1 file changed
+3
-3
@@ -27,14 +27,14 @@ foreach($questionsobj as $question) {
|
||||
echo("<tr>");
|
||||
echo("<td>$question->question</td>");
|
||||
|
||||
$color = ($question->solution == "0") ? "background-color: green" : "background-color: red";
|
||||
$color = ($question->solution == 0) ? "background-color: green" : "background-color: red";
|
||||
echo("<td style='$color'>$question->answer0</td>");
|
||||
|
||||
$color = ($question->solution == 1) ? "background-color: green" : "background-color: red";
|
||||
echo("<td>$question->answer1</td>");
|
||||
echo("<td style='$color'>$question->answer1</td>");
|
||||
|
||||
$color = ($question->solution == 2) ? "background-color: green" : "background-color: red";
|
||||
echo("<td>$question->answer2</td>");
|
||||
echo("<td style='$color'>$question->answer2</td>");
|
||||
|
||||
echo("<td>$question->solution</td>");
|
||||
echo("<td></td>");
|
||||
|
||||
Reference in new issue
Block a user