本文整理汇总了PHP中myclass::db_result_next_prev方法的典型用法代码示例。如果您正苦于以下问题:PHP myclass::db_result_next_prev方法的具体用法?PHP myclass::db_result_next_prev怎么用?PHP myclass::db_result_next_prev使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myclass
的用法示例。
在下文中一共展示了myclass::db_result_next_prev方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: count
$user['username'] = $memFsInfo['username'];
$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']);
示例2: count
echo " id " . $table_id;
# UPDATE NOTIFICATION AS VIEWED
# GET THE SPECIFIC MODAL INFO
$modal['modal'] = $mc->fs_postedarticles(array('aticle_type' => 'select', 'limit_start' => 0, 'limit_end' => 1, 'orderby' => 'artno desc', 'where' => "artno = {$table_id}"));
$modal['mno'] = $modal['modal'][0]['mno'];
# GET MORE MODALS
$modal['modal_more'] = $mc->fs_postedarticles(array('aticle_type' => 'select', 'limit_start' => 0, 'limit_end' => 30, 'orderby' => 'artno desc', 'where' => "mno = {$modal['mno']}"));
// print_r($modal['modal_more']);
# GET SPECIFIC MODAL COMMENT
# get first latest comment by cno
$modal['comments'] = $mc->posted_modals_comment_Query(array('table_name' => $table_name, 'table_id' => $table_id, 'orderby' => 'cno asc', 'limit_start' => 0, 'limit_end' => 10, 'comment_query' => 'get-comment-modal'));
# get total comment
$modal['comments_all'] = $mc->posted_modals_comment_Query(array('table_name' => $table_name, 'table_id' => $table_id, 'orderby' => 'cno asc', 'limit_start' => 0, 'limit_end' => 1000, 'comment_query' => 'get-comment-modal'));
$modal['comments_len'] = count($modal['comments_all']);
# get next prev
$modal['nextprev'] = $mc->db_result_next_prev($modal['table_name'], $modal['table_id'], $modal['modal_more'], 'all');
// $mc->print_r1( $modal['modal_more']);
// $modal['next']
// $modal['prev']
// $mc->print_r1( $modal['nextprev']);
// echo " total comments are $modal[comments_len] <br> ";
// $mc->print_r1($modal['modal'] );
// $mc->print_r1( $modal['modal_more'] );
# SET SESSION
$_SESSION['modal_more'] = $modal['modal_more'];
$_SESSION['nextprev'] = $modal['nextprev'];
$_SESSION['modal'] = $modal['modal'];
# get image src
$modal['src'] = $mc->image(array('table_name' => $modal['table_name'], 'table_id' => $modal['table_id'], 'type' => 'get-default-image-src', 'size' => 'detail'));
echo " this is the main image src {$modal['src']} <br> ";
# MODAL DISPLAYED