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