I'm having a problem in this simple SQL/PHP query...
<?php
$course=$row['course'];
include('../db.php');
$cat=$row['cat'];
$result = mysql_query("SELECT * FROM question WHERE course='$course' AND cat='$cat'");
while($row = mysql_fetch_array($result))
    {
        echo $row['question'].'?<br>';
        $qid=$row['qid'];
        echo '<input type="hidden" name="qqqq[]" value="'.$qid.'" />';
        echo '<select name="answer[]">';
        echo '<option>Select Answer></option>';
        $resultik = mysql_query("SELECT * FROM choices WHERE question='$qid' ORDER BY RAND() LIMIT 4");
            while($rowik = mysql_fetch_array($resultik))
                {
                echo '<option>';
                echo $rowik['opt'];
                echo '</option>';
                }
        echo '</select><br><br>';
    }
?>
Basically, this is a online examination. I want to display all the questions if the student will login. And the questions will be order/arrange according by their course. But eventually, there's no display at all. Not even a single letter will display.
Any help would be appreciated. Thank you so much.
 
    