本文整理汇总了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 />