當前位置: 首頁>>代碼示例>>PHP>>正文


PHP DedeSql::getarray方法代碼示例

本文整理匯總了PHP中DedeSql::getarray方法的典型用法代碼示例。如果您正苦於以下問題:PHP DedeSql::getarray方法的具體用法?PHP DedeSql::getarray怎麽用?PHP DedeSql::getarray使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在DedeSql的用法示例。


在下文中一共展示了DedeSql::getarray方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: intval

if(!isset($sectorid)) $sectorid = 0;
if(!isset($sectorid2)) $sectorid2 = 0;
if(empty($page)) $page = 1;

$areaid = intval($areaid);
$areaid2 = intval($areaid2);
$sectorid = intval($sectorid);
$sectorid2 = intval($sectorid2);
$page = intval($page);

isset($comname) || $comname = '';
$comname = trim($comname);
$allsectors = $areas = array();
$dsql->setquery("select id, name from #@__sectors order by disorder desc,id asc");
$dsql->Execute();
while($row = $dsql->getarray())
{
	$allsectors[$row['id']] = $row['name'];

}

	//////////////////////地區數據處理s/////////////////////////////
		$sql = "select * from #@__area order by disorder desc,id asc";
		$dsql->SetQuery($sql);
		$dsql->Execute();
		$toparea = $subarea = array();
		while($sector = $dsql->GetArray())
		{
			$areas[$sector['id']] = $sector['name'];

			if($sector['reid'] == 0)
開發者ID:BGCX262,項目名稱:zyyhong-svn-to-git,代碼行數:31,代碼來源:search.php

示例2: DedeSql

<?php
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__)."/../include/inc_typelink.php");
require_once(dirname(__FILE__)."/inc/inc_batchup.php");
CheckPurview('sys_ArcBatch');
@set_time_limit(0);
$dsql = new DedeSql(false);
if($action=='modddpic')
{
	$query = "select ID,maintable from #@__channeltype";
	$dsql->setquery($query);
	$dsql->execute();
	$channels = array();
	while($row = $dsql->getarray())
	{
		$channels[$row['ID']] = $row['maintable'];
	}
	$query = "select aid, litpic,channelid from #@__full_search where litpic<>''";
	$dsql->setquery($query);
	$dsql->execute('litpic');
	while($row = $dsql->getarray('litpic'))
	{
		if(!preg_match("/^http:\/\//i",$row['litpic'])){
			if(!file_exists($row['litpic'])){
				$query = "update #@__full_search set litpic='' where aid=".$row['aid']." limit 1";
				$dsql->executenonequery($query);
				$maintable = $channels[$row['channelid']];
				$query = "update ".$maintable." set litpic='' where aid=".$row['aid']." limit 1";
				$dsql->executenonequery($query);
			}
		}
開發者ID:BGCX262,項目名稱:zyyhong-svn-to-git,代碼行數:31,代碼來源:content_batchup_action2.php


注:本文中的DedeSql::getarray方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。