本文整理匯總了PHP中Paging::getResult方法的典型用法代碼示例。如果您正苦於以下問題:PHP Paging::getResult方法的具體用法?PHP Paging::getResult怎麽用?PHP Paging::getResult使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Paging
的用法示例。
在下文中一共展示了Paging::getResult方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Query
<br />
<br />
<?php
}
$paging;
$query = new Query("advertisement");
if (isset($_GET['category'])) {
$query->whereQuery("*", "category", $_GET['category'], "date", "DESC", 1000);
$paging = new Paging($query, 20);
$paging->where("*", "category", $_GET['category'], "date", "DESC");
} else {
$query->makeQuery("*", "date", "DESC", 100);
$paging = new Paging($query, 20);
$paging->makePagingQuery();
}
while ($row = mysql_fetch_assoc($paging->getResult())) {
$getCategory = new Query("advertisement_categories");
$getCategory->whereQuery("*", "rowid", $row['category'], "rowid", "ASC", 1000);
?>
<table border="0" cellpadding="0" cellspacing="0" class="demoTable">
<tr>
<td class="tdPadding" colspan="2"><span class="boldGreyLighter"><?php
echo $row['title'];
?>
</span><span class="smallGrey"> -
<?php
echo $getCategory->getResultRow("category");
?>
</span><br /><br />