本文整理匯總了PHP中post::totalHits方法的典型用法代碼示例。如果您正苦於以下問題:PHP post::totalHits方法的具體用法?PHP post::totalHits怎麽用?PHP post::totalHits使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類post
的用法示例。
在下文中一共展示了post::totalHits方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: post
$link_title = " Short Link: ";
$bitly = "<a href='{$bitly}'>{$bitly}</a>";
}
// update view counts
$get = new post();
$get->hits();
// if the user is a registered user update hit total count
if (isset($_SESSION['reguser'])) {
$regbool = $_SESSION['reguser'];
} else {
$regbool = 0;
}
if ($regbool == "1") {
// update the total hit count
$get = new post();
$get->totalHits();
// test
$get = new post();
$uid = $get->getuid($posters_name);
// update the post with
$get = new post();
$get->updateUsrhits($uid);
}
$fdate = date('F j, Y', strtotime($post_date));
// switch on expiration
switch ($post_exp) {
case "0":
$expires = "never";
break;
case "1":
$expires = "10 mins";