This commit is contained in:
2019-07-04 09:06:34 +02:00
parent 57aa1797a4
commit 77f58f193d

View File

@@ -28,7 +28,7 @@ foreach($questionsobj as $question) {
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";
echo("<td>$question->answer1</td>"); echo("<td>$question->answer1</td>");