From 588af7d081e11db69277612f196f8cb264ac1243 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 24 Jan 2013 13:06:19 +0100 Subject: Store user query and if query was correct --- sqlbox/view.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sqlbox/view.php') diff --git a/sqlbox/view.php b/sqlbox/view.php index eedca2b..7a151ce 100644 --- a/sqlbox/view.php +++ b/sqlbox/view.php @@ -102,6 +102,8 @@ if (isset($data->sqlbox_query)) { echo $OUTPUT->heading("Correct!"); else echo $OUTPUT->heading("Incorrect!"); + + sqlbox_submit_response($data->sqlbox_query, $sqlbox, $correct, $USER->id); } // Finish the page -- cgit