?> "<?php $quiz = new Quiz($row_quizzes2['quiz_id']); if ($quiz->hasTaken($member->id)) { echo 'style="color:#999"'; } ?> ><?php echo $row_quizzes2['cat_name']; ?> </a> by <a href="viewMember.php?id=<?php echo $row_quizzes2['fk_member_id']; ?> "<?php $quiz = new Quiz($row_quizzes2['quiz_id']); if ($quiz->hasTaken($member->id)) { echo 'style="color:#999"'; } ?> ><?php echo $row_quizzes2['member_name']; ?> </a></p> <p class="source"><?php //***********************************************ADD BY LIEN************************************************// $queryMode = sprintf("SELECT display_mode FROM q_quizzes WHERE quiz_id = %d", $quiz->quiz_id); $resultMode = mysql_query($queryMode, $quizroo) or die(mysql_error()); $row_resultMode = mysql_fetch_assoc($resultMode); $resultforMode = array(); $mode = ""; do {