summaryrefslogtreecommitdiff
path: root/sqlbox/view.php
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-24 13:06:19 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-24 14:47:06 +0100
commit588af7d081e11db69277612f196f8cb264ac1243 (patch)
treebbc8cf8078bf953c71bd1ebccccb31737bfd9d40 /sqlbox/view.php
parent0d94307750159d8afce745064742a97485ad9094 (diff)
downloadsqltutor-plugin-588af7d081e11db69277612f196f8cb264ac1243.tar.gz
sqltutor-plugin-588af7d081e11db69277612f196f8cb264ac1243.tar.bz2
sqltutor-plugin-588af7d081e11db69277612f196f8cb264ac1243.zip
Store user query and if query was correct
Diffstat (limited to 'sqlbox/view.php')
-rw-r--r--sqlbox/view.php2
1 files changed, 2 insertions, 0 deletions
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