summaryrefslogtreecommitdiff
path: root/sqlbox/view.php
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-21 13:06:06 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-21 13:10:03 +0100
commite6d9384cfa1af9c69636b4bc6bf1108327ea3085 (patch)
treee2c5a4df00ed80148f9dd861348204a171843dcb /sqlbox/view.php
parent199d95ae1f065a3a252af3d4aad9bc3d778aedd3 (diff)
downloadsqltutor-plugin-e6d9384cfa1af9c69636b4bc6bf1108327ea3085.tar.gz
sqltutor-plugin-e6d9384cfa1af9c69636b4bc6bf1108327ea3085.tar.bz2
sqltutor-plugin-e6d9384cfa1af9c69636b4bc6bf1108327ea3085.zip
sqlbox: Add prefixes to form
Or it clashes with moodle search box.
Diffstat (limited to 'sqlbox/view.php')
-rw-r--r--sqlbox/view.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/sqlbox/view.php b/sqlbox/view.php
index b5d613e..1158d7b 100644
--- a/sqlbox/view.php
+++ b/sqlbox/view.php
@@ -78,13 +78,13 @@ $form = new mod_sqlbox_form($PAGE->url->out(false));
$form->display();
$data = $form->get_data();
-echo $OUTPUT->heading('SQL Query: '.$data->query);
-if (isset($data->query)) {
+echo $OUTPUT->heading('SQL Query: '.$data->sqlbox_query);
+if (isset($data->sqlbox_query)) {
$db = pg_connect("host=localhost dbname=sqlbox user=sqlbox password=foobar");
if (!db)
error("Failed to connect to sqlbox db");
- $result = pg_query($db, $data->query);
+ $result = pg_query($db, $data->sqlbox_query);
if (!$result)
error("Query failed!");