From 7282d05b596e1de33005c891a30153729bec5998 Mon Sep 17 00:00:00 2001 From: wlx Date: Fri, 9 Dec 2011 03:08:02 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8D=E8=83=BD=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E5=9C=A8=E7=BA=BF=E4=B8=8B=E8=BD=BD=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C=E5=B9=B6=E5=90=8C=E6=97=B6?= =?UTF-8?q?=E5=88=A0=E9=99=A4dataorder=E4=B8=AD=E7=9B=B8=E5=85=B3=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controllers/DownController.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/application/admin/controllers/DownController.php b/application/admin/controllers/DownController.php index 2acb2735..fbd3756e 100644 --- a/application/admin/controllers/DownController.php +++ b/application/admin/controllers/DownController.php @@ -403,9 +403,11 @@ class Admin_DownController extends Zend_Controller_Action elseif($delete) { - $sql="delete from onlineapp where id=?"; - try { - $this->db->query($sql,array($id)); + try { + $sql="delete from onlineapp where id=?"; + $this->db->query($sql,array($delete)); + $sql="delete from dataorder where onlineappid=?"; + $this->db->query($sql,array($delete)); $this->messenger->addMessage('该记录已删除'); } catch (Exception $e) { $this->messenger->addMessage($e->getMessage());