using this query:

$queryC = "SELECT * FROM tbl_courses WHERE course_id='$course_id'";
$resC = mysql_fetch_assoc(dbQuery($queryC));
$allUnits = $resC[course_unit];...