'; ?> getResourcesByType('jeopardy', array('resourceID' => $_GET['rid'])); if ( count($objs) > 0 ) { print ''; } $obj = $objs[0]; $dial = ''; $categories = $obj->getCategories(); $last = $obj->getLast(); $tags = array('first', 'second', 'third', 'fourth', 'fifth'); foreach ($categories as $cat) { print ''; $i = 0; foreach ($cat['data'] as $dat) { print '<'.$tags[$i].' points="'.$dat['points'].'" answer="'.$dat['answer'].'">'.$dat['question'].''; $i++; } print ''; } print ''; print ''.$last['question'].''; print ''; } ?>