修复不能删除在线下载信息的问题,并同时删除dataorder中相关记录

This commit is contained in:
wlx 2011-12-09 03:08:02 +00:00
parent 0390c991f9
commit 7282d05b59
1 changed files with 5 additions and 3 deletions

View File

@ -403,9 +403,11 @@ class Admin_DownController extends Zend_Controller_Action
elseif($delete) elseif($delete)
{ {
$sql="delete from onlineapp where id=?";
try { try {
$this->db->query($sql,array($id)); $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('该记录已删除'); $this->messenger->addMessage('该记录已删除');
} catch (Exception $e) { } catch (Exception $e) {
$this->messenger->addMessage($e->getMessage()); $this->messenger->addMessage($e->getMessage());