Here
if(empty($exam->dont_store_data)) {
$wpdb->query($wpdb->prepare("INSERT INTO ".WATU_TAKINGS." SET exam_id=%d, user_id=%d, ip=%s, date=CURDATE(),
points=%d, grade_id=%d, result=%s, snapshot=''", $exam_id, $uid, $_SERVER['REMOTE_ADDR'], $achieved, $g_id, $grade));
$taking_id = $wpdb->insert_id;
}
Taking saves if $exam->dont_store_data == 0. But taking saves without details because snapshot=”
Here
$output = str_replace($replace_these, $with_these, wpautop(stripslashes($quiz_details->final_screen)));
if(strstr($output, '%%ANSWERS%%')) {
$output = str_replace('%%ANSWERS%%', $result, $output);
}
$final_output = apply_filters(WATU_CONTENT_FILTER, $output);
$final_output will contain $result only if final_screen will contain %%ANSWERS%%.
i am not right?
I mean i want to see taking details as admin.