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


PHP myclass::get_res_len方法代碼示例

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


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

示例1: count

$user['profile_tab'] = 'looks';
$mno = $_SESSION["mno"];
$lookOwnerName = $li["lookOwnerName"];
$pltags = $li['pltags'];
$plstyle = $li['style'];
$Ttag = count($li['pltags']);
$lookName = $li["lookName"];
$lookAbout = $li["lookAbout"];
$pltvotes = $li["pltvotes"];
$trating = $li["trating"];
$style = $li["style"];
$pltratings = number_format($li["trating"]);
$webDesc = "Fashion Sponge is the easiest & fastest way to: Show your ootd, see the latest trends, discover fashionable people & blogs, get beauty & style tips & find fashion inspiration.";
$looks = $mc->retreive_specific_user_all_looks($lookOwnerMno, "order by plno desc ");
$next_prev = $mc->db_result_next_prev('postedlooks', $plno, $looks, 'all');
$total_looks = $mc->get_res_len($looks);
$total_show_looks = $mc->get_total_limit_show(intval($total_looks), 30);
$mem_info = $mc->get_user_info_by_id($mno1);
$tlooks = number_format($mem_info[0]['tlooks']);
$tratings = number_format($otrating);
/*number_format($mem_info[0]['tratings']); */
$tfollower = number_format($mem_info[0]['tfollower']);
$tfollowing = number_format($mem_info[0]['tfollowing']);
$tpercentage = number_format($mem_info[0]['tpercentage']);
$lookmodalsstyle = $mc->lookdetails_set_size_of_the_look($img, $ri);
// $mc->add_look_view( $plno );
$look_countingPos = $mc->get_modal_position_detail($plno, $looks, 'plno');
$article_link = $li['article_link'];
$more = $mc->look_with_more($plno, $article_link);
$tlc = $mc->get_total('plcno', 'posted_looks_comments', 'plno', $_SESSION['plno']);
$modal['table_name'] = 'postedlooks';
開發者ID:jesus143,項目名稱:fs-dev,代碼行數:31,代碼來源:more-look.php

示例2: myclass

require "../../../fs_folders/php_functions/library.php";
require "../../../fs_folders/php_functions/source.php";
require "../../../fs_folders/php_functions/myclass.php";
require '../../../fs_folders/php_functions/Database/post.php';
$mc = new myclass();
$mc->post = new Post();
// $profile_tab = $_GET["profile_tab"];
// $mno = $_GET['mno'];
// $pagenum = $_GET["pagenum"];
// $_GET['tres'] = 1;
#  pass the current assign modal who will show next
$counter_tres = intval($_GET['tres']);
//this is next value passed from javascript counter
echo "<Br>  <div  onclick=\"\$('#fs-general-ajax-response').text('')\" >(x)</div>";
$r = $mc->get_activity(200);
$act_len = $mc->get_res_len($r);
$start = $mc->get_loop_start($counter_tres, 25);
$end = $mc->get_loop_end($counter_tres, 25);
$counter = $mc->set_loop_counter(1);
echo " start {$start} end {$end} <br>";
$counter_tres++;
//increment the counter
# add 1 so that when click view more another different modals will show
// $_SESSION['counter']++;
for ($i = $start; $i < $end; $i++) {
    if ($i < $act_len) {
        $ano = intval($r[$i]['ano']);
        $mno = intval($r[$i]['mno']);
        $action = $r[$i]['action'];
        $_table = $r[$i]['_table'];
        $_table_id = intval($r[$i]['_table_id']);
開發者ID:jesus143,項目名稱:fs-dev,代碼行數:31,代碼來源:latest_modals.php


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