aboutsummaryrefslogtreecommitdiff
path: root/admin/rudi/views/view.awards.add.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/rudi/views/view.awards.add.php')
-rw-r--r--admin/rudi/views/view.awards.add.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/admin/rudi/views/view.awards.add.php b/admin/rudi/views/view.awards.add.php
index 9c97c54..71f6a91 100644
--- a/admin/rudi/views/view.awards.add.php
+++ b/admin/rudi/views/view.awards.add.php
@@ -6,12 +6,13 @@
global $db;
$name = $form->request['name'];
$text = $form->request['text'];
+ decho("INSERT INTO `rudi_awards` SET `class_id` = '$class_id', `name` = '$name', `description` = '$text'");
$db->Query("INSERT INTO `rudi_awards` SET `class_id` = '$class_id', `name` = '$name', `image` = '', `description` = '$text'");
- PageRedirect(1, "?op=rudi&show=awards&cid={$class_id}");
+ PageRedirect(1, "?op=rudi&show=awards&cid=".$class_id);
return;
}
- echo LinkInternal("Cancel","?op=rudi&show=awards&cid={$class_id}");
+ echo LinkInternal("Cancel","?op=rudi&show=awards&cid=".$class_id);
OpenTable();
?>