本文整理匯總了PHP中DedeSql::close方法的典型用法代碼示例。如果您正苦於以下問題:PHP DedeSql::close方法的具體用法?PHP DedeSql::close怎麽用?PHP DedeSql::close使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DedeSql
的用法示例。
在下文中一共展示了DedeSql::close方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: DedeSql
<?php
require_once(dirname(__FILE__)."/config.php");
@set_time_limit(0);
CheckPurview('sys_ArcBatch');
if(empty($dopost)) $dopost = '';
$dsql = new DedeSql(false);
if($dopost=='analyse'){
$channelid = intval($channelid);
$maintable = $dsql->getone("select maintable from #@__channeltype where ID=$channelid");
if(is_array($maintable)){
$maintable = $maintable['maintable'];
}else{
$dsql->close();
showmsg('頻道id不正確,請重新選擇頻道','javascript:;');
exit();
}
$dsql->SetQuery("Select count(title) as dd,title From $maintable where channel=$channelid group by title order by dd desc limit 0,$pagesize");
$dsql->Execute();
$allarc = 0;
require_once(dirname(__FILE__)."/templets/article_result_same.htm");
$dsql->Close();
exit();
}else if($dopost=='delsel'){
require_once(dirname(__FILE__)."/../include/inc_typelink.php");
require_once(dirname(__FILE__)."/inc/inc_batchup.php");
if(empty($titles)){
$dsql->close();
header("Content-Type: text/html; charset={$cfg_ver_lang}");