Update
This commit is contained in:
@@ -27,7 +27,7 @@ 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";
|
||||
|
Reference in New Issue
Block a user