getCourseList(); $course_id = isset($_GET['course_id'])?(int) $_GET['course_id']: 2; $query = " select * from dishes where course_id = $course_id order by `order` asc, name asc "; $result = $db->query($query); $dishes = array(); while ($line = $db->fetchNextObject($result)) { $dishes[] = $line; } $items = isset($_SESSION['items'])?$_SESSION['items']:''; $items = ($items!='')?explode(',', $items):array(); ?> Order | Beli Deli Gourmet Catering

Course:
    $value){?>

Dishes of :

$dish){ ?> id, $items)?'class="highlight"':''?>>
name ?> description) ?>