Update
This commit is contained in:
1 parent
57aa1797a4
commit
77f58f193d
1 file changed
+1
-1
@@ -28,7 +28,7 @@ foreach($questionsobj as $question) {
|
||||
echo("<td>$question->question</td>");
|
||||
|
||||
$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";
|
||||
echo("<td>$question->answer1</td>");
|
||||
|
||||
Reference in new issue
Block a user