require_once('appheader.php'); require_once('header_inline.php'); require_once('config.php'); /*---------------*/ $sql = "select * from " . $table_prefix . "course order by sorting "; $stmt = $db->prepare($sql); $stmt->execute(); $courses = $stmt->fetchAll(PDO::FETCH_ASSOC); //d( $course); /*---------------*/ ?> foreach ($courses as $c) { echo ' '; echo '' . $c['code'] . ""; echo ' '; } ?> echo i18n_text("Adv. Listing"); ?> echo i18n_text("Loading"); ?>... echo i18n_text("Referesh"); ?> foreach ($courses as $course) { ?> echo i18n_text("Finished");?>: echo i18n_text("Check In");?>: echo i18n_text("Registered");?>: .... } ?>