本文整理汇总了PHP中PoTable::numRowByAnd方法的典型用法代码示例。如果您正苦于以下问题:PHP PoTable::numRowByAnd方法的具体用法?PHP PoTable::numRowByAnd怎么用?PHP PoTable::numRowByAnd使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PoTable
的用法示例。
在下文中一共展示了PoTable::numRowByAnd方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PoTable
$idpost = $currentDetail->id_post;
if ($currentDetail > 0) {
$tabledpost = new PoTable('post');
$currentDpost = $tabledpost->findByPost(id_post, $idpost);
$currentDpost = $currentDpost->current();
$contentdet = html_entity_decode($currentDetail->content);
$biodet = html_entity_decode($currentDetail->bio);
$tabledcat = new PoTable('category');
$currentDcat = $tabledcat->findBy(id_category, $currentDetail->id_category);
$currentDcat = $currentDcat->current();
$p = new Paging();
$batas = 5;
$posisi = $p->cariPosisi($batas);
$tabledcom = new PoTable('comment');
$composts = $tabledcom->findAllLimitByAnd(id_comment, id_post, active, "{$idpost}", "Y", "ASC", "{$posisi},{$batas}");
$totaldcom = $tabledcom->numRowByAnd(id_post, $idpost, active, 'Y');
mysql_query("UPDATE post SET hits = {$currentDetail->hits}+1 WHERE id_post = '" . $idpost . "'");
?>
<div class="page">
<div class="row page_margin_top">
<div class="column column_2_3">
<div class="row">
<div class="post single">
<h1 class="post_title"><?php
echo $currentDpost->title;
?>
</h1>
<ul class="post_details clearfix">
<li class="detail category">Di <a href="<?php
echo "{$website_url}/category/{$currentDcat->seotitle}";
?>
示例2: Paging
<div class="container">
<div class="row" id="portfolio-items">
<?php
$kata = $val->validasi($_GET['search'], 'xss');
$p = new Paging();
$batas = 5;
$posisi = $p->cariPosisi($batas);
$tablesearch = new PoTable('post');
$searchposts = $tablesearch->findSearchPost($kata, "{$posisi},{$batas}");
$numsearchposts = $tablesearch->numRowSearchPost($kata);
if ($numsearchposts > 0) {
?>
<?php
foreach ($searchposts as $searchpost) {
$tabledscom = new PoTable('comment');
$totaldscom = $tabledscom->numRowByAnd(id_post, $searchpost->id_post, active, 'Y');
$tablecatds = new PoTable('category');
$currentCatds = $tablecatds->findBy(id_category, $searchpost->id_category);
$currentCatds = $currentCatds->current();
$tableuser = new PoTable('users');
$currentUser = $tableuser->findBy(id_user, $searchpost->editor);
$currentUser = $currentUser->current();
?>
<div class="item col-sm-4">
<div class="portfolio-item">
<a href="<?php
echo "{$website_url}/detailpost/{$searchpost->seotitle}";
?>
" class="image">
<img src="<?php
echo $website_url;
示例3: Paging
</div>
</div>
</div>
</section>
<section class="portfolio-container">
<div class="container">
<div class="row" id="portfolio-items">
<?php
$p = new Paging();
$batas = 5;
$posisi = $p->cariPosisi($batas);
$tabledcpost = new PoTable('post');
$dcposts = $tabledcpost->findAllLimitByAnd(id_post, id_category, active, "{$iddcat}", "Y", "DESC", "{$posisi},{$batas}");
foreach ($dcposts as $dcpost) {
$tabledccom = new PoTable('comment');
$totaldccom = $tabledccom->numRowByAnd(id_post, $dcpost->id_post, active, 'Y');
$tableuser = new PoTable('users');
$currentUser = $tableuser->findBy(id_user, $dcpost->editor);
$currentUser = $currentUser->current();
?>
<div class="item col-sm-4">
<div class="portfolio-item">
<a href="<?php
echo "{$website_url}/detailpost/{$dcpost->seotitle}";
?>
" class="image">
<img src="<?php
echo $website_url;
?>
/po-content/po-upload/medium/medium_<?php
echo $dcpost->picture;
示例4: date
$currentSet = $tableset->findBy(id_setting, '1');
$currentSet = $currentSet->current();
$website_name = $currentSet->website_name;
$website_url = $currentSet->website_url;
$meta_description = $currentSet->meta_description;
$meta_keyword = $currentSet->meta_keyword;
$favicon = $currentSet->favicon;
$mode_maintenance = $currentSet->website_maintenance;
$website_cache = $currentSet->website_cache;
$website_cache_time = $currentSet->website_cache_time;
$member_register = $currentSet->member_register;
$ipstat = $_SERVER['REMOTE_ADDR'];
$tanggalstat = date("Ymd");
$waktustat = time();
$tablestat = new PoTable('traffic');
$totalstat = $tablestat->numRowByAnd(ip, $ipstat, tanggal, $tanggalstat);
if ($totalstat == 0) {
$tablestatp = new PoTable('traffic');
$tablestatp->save(array('ip' => $ipstat, 'tanggal' => $tanggalstat, 'hits' => 1, 'online' => $waktustat));
} else {
$tablestatp2 = new PoTable('traffic');
$statpro = $tablestatp2->findByAnd(ip, $ipstat, tanggal, $tanggalstat);
$statpro = $statpro->current();
$hitspro = $statpro->hits;
$hitspro = $hitspro + 1;
$datastat = array('hits' => $hitspro, 'online' => $waktustat);
$tablestat2 = new PoTable('traffic');
$tablestat2->updateByAnd('ip', $ipstat, 'tanggal', $tanggalstat, $datastat);
}
/*--- hapus baris ini dan ubah urlnya jika web Anda sudah di hosting
function facebook_shares($url){
示例5: PoTable
</div>
</li>
<?php
}
?>
</ul>
</div>
<h4 class="box_header page_margin_top_section">Post Kategori</h4>
<ul class="taxonomies columns clearfix page_margin_top">
<?php
$tablesidecat = new PoTable('category');
$tablejmlpost = new PoTable('post');
$sidecats = $tablesidecat->findAllRand();
foreach ($sidecats as $sidecat) {
$tablejmlposts = $tablejmlpost->numRowByAnd(id_category, $sidecat->id_category, active, 'Y');
?>
<li><a href="<?php
echo $website_url;
?>
/category/<?php
echo $sidecat->seotitle;
?>
" title="<?php
echo $sidecat->title;
?>
"><?php
echo $sidecat->title;
?>
(<?php
echo $tablejmlposts;
示例6: PoTable
echo $siteurl;
?>
" title="Back to the website" class="btn btn-sm btn-primary"><?php
echo $langpagenotfound2;
?>
</a>
</p>
<p> </p>
</div>
<p style="width:100%; height:250px;"> </p>
<?php
} else {
$tableroleaccess = new PoTable('user_role');
$currentRoleAccess = $tableroleaccess->findByAnd(id_level, $_SESSION['leveluser'], module, $mod);
$currentRoleAccess = $currentRoleAccess->current();
$numRowAccess = $tableroleaccess->numRowByAnd(id_level, $_SESSION['leveluser'], module, $mod);
if ($numRowAccess > 0) {
if ($act == "") {
if ($currentRoleAccess->read_access == "Y") {
include "po-component/po-{$mod}/{$mod}.php";
} else {
?>
<div class="content-header">
<div class="header-section">
<h1><i class="gi gi-warning_sign"></i>404<small> <?php
echo $langpagenotfound1;
?>
</small><br /><br /></h1>
</div>
</div>
<ul class="breadcrumb breadcrumb-top">