From: Richard Whitehouse Date: Fri, 4 Feb 2011 18:44:46 +0000 (+0000) Subject: Commit MySQL changes X-Git-Url: https://git.richardwhiuk.com/?a=commitdiff_plain;h=0a23c37529232b3d2dbc444478e5ad0a75e3e808;p=hmb.git Commit MySQL changes --- diff --git a/pages/add.php b/pages/add.php index 467f446..b4a34c0 100644 --- a/pages/add.php +++ b/pages/add.php @@ -44,8 +44,8 @@ class Page_Add extends Page { if(!$this->error){ $current = Order::Unconfirmed_By_User($system->user()); $current->order($type, $this->name); - var_dump($this); - exit; + $system->database->commit(); + header('Location: ' . $system->url('index')); } }