[insert_php]
global $wpdb;
$myuser = get_current_user_id();
$sql = “SELECT exam_id FROM wp_watupro_taken_exams WHERE user_id = ‘$myuser'”;
$myExams = $wpdb->get_results($sql);
foreach ($myExams as $myExam) {
if ($myExam->exam_id == 8) { $module9 = “true”; }
if ($myExam->exam_id == 9) { $module10 = “true”; }
if ($myExam->exam_id == 46) { $module1 = “true”; }
if ($myExam->exam_id == 2) { $module2 = “true”; }
}
[/insert_php]
The course structure is as presented below.
FOUNDATION MODULES are required for all categories.
_______________________________________________________
MODULE 01: Introduction to Female Genital Mutilation (FGM)[insert_php]
if ($module1 == “true”) { echo ‘‘; }
[/insert_php]
MODULE 02: FGM: Understanding Gender and Social Dynamics[insert_php]
if ($module2 == “true”) { echo ‘‘; }
[/insert_php]
MODULE 09
if ($module9 == “true”) { echo ‘‘; }
[/insert_php]
MODULE 10: [insert_php]
if ($module10 == “true”) { echo ‘‘; }
[/insert_php]