title: course list in combo box
body: <p>i am trying to get all the courses from database but i guess its not really working can anyone tell me or give me the query to get all courses from data base </p>
  
  <pre><code>    $DB-&gt;get_records_menu('quiz', array('course' =&gt;$courseid),'','id, name');
  echo '&lt;select name="quizid2" id="combo_3"&gt;';
              echo '&lt;option value=" " selected="selected"&gt;Choose....&lt;/option&gt;';
              foreach($quizzes as $id2 =&gt; $name) {
                  echo '&lt;option value=' . $id2 . '&gt;' . $name . '&lt;/option&gt;';
              }
              echo '&lt;/select&gt;';
  </code></pre>
  
  <p>this is what i am using to get all the quizzes of specific course but somehow i am unable to get the list of all available courses from database
  i want to list the courses in same way aswell</p>