This commit is contained in:
2019-07-04 09:04:59 +02:00
parent 918213115b
commit 57aa1797a4

View File

@@ -27,7 +27,7 @@ foreach($questionsobj as $question) {
echo("<tr>"); echo("<tr>");
echo("<td>$question->question</td>"); 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>"); echo("<td style=$color>$question->answer0</td>");
$color = ($question->solution == 1) ? "background-color: green" : "background-color: red"; $color = ($question->solution == 1) ? "background-color: green" : "background-color: red";