Exemple #1
0
<?php 
include '../common/include-file.php';
$msgBase = new MsgBase();
$baseData = array('msgType' => 'text', 'inputCode' => '123456', 'createTime' => date('Y-m-d'));
//$baseId = $msgBase->insert($baseData);
$msgBase->delete('id = 4 ');
?>

Exemple #2
0
<?php

include_once '../common/include-file.php';
$id = $_GET['id'];
$baseId = $_GET['baseId'];
$msgBase = new MsgBase();
$msgBase->delete(" id = " . $baseId);
$msgNews = new MsgNews();
$msgNews->delete(" id = " . $id);
header("Location:" . $CONTEXT_PATH . "/wxcms/msgnewsList.php");