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


PHP Website::fetchewebsiteinfo方法代碼示例

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


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

示例1: Website

<?php

include_once "header.php";
include_once 'includes/website.php';
include_once 'includes/library.php';
session_start();
$_SESSION['websiteid'] = 1;
$websiteid = $_SESSION['websiteid'];
if (isset($_GET['pageurlid'])) {
    $pageid = Mod_addslashes($_GET['pageurlid']);
    $websiteid = $_SESSION['websiteid'];
    $viewpage = new Website();
    /******* fetching website information ***************/
    $webres = $viewpage->fetchewebsiteinfo($websiteid);
    $db = new DBConnection();
    $webrow = $db->fetch_assoc($webres);
    //print_r($pagerow);
    $webid = $webrow[website_id];
    $webname = $webrow[website_name];
    $webusr = $webrow[user_id];
    $webkeyword = $webrow[keyword];
    $websitetitle = $webrow[site_title];
    $webdescription = $webrow[meta_description];
    /***********for fetching particular page information  *************/
    $res = $viewpage->fetchpage($websiteid, $pageid);
    $db = new DBConnection();
    $pagerow = $db->fetch_assoc($res);
    //print_r($pagerow);
    $pageid = $pagerow[page_id];
    $pagename = $pagerow[page_name];
    $pagecontent = $pagerow[page_content];
開發者ID:hscale,項目名稱:mtptool,代碼行數:31,代碼來源:websitepreview.php

示例2: Website

}
if (isset($_GET['pageurlid'])) {
    $pageid = Mod_addslashes($_GET['pageurlid']);
    $websiteid = $_SESSION['websiteid'];
    $website = new Website();
    /***********for fetching particular page information  *************/
    $res = $website->fetchpage($websiteid, $pageid);
    $pagerow = $website->fetch_assoc($res);
    //print_r($pagerow);
    $pageid = $pagerow['page_id'];
    $pagename = $pagerow['page_name'];
    $pagecontent = $pagerow['page_content'];
}
/******* fetching website information ***************/
$website = new Website();
$webres = $website->fetchewebsiteinfo($websiteid);
$webrow = $website->fetch_assoc($webres);
//print_r($pagerow);
$webid = $webrow['website_id'];
$webname = $webrow['website_name'];
$webusr = $webrow['user_id'];
$webkeyword = $webrow['keyword'];
$websitetitle = $webrow['site_title'];
$webdescription = $webrow['meta_description'];
$pagearr = $items;
$limit = 1;
$qty_items = count($items);
$qty_pages = ceil($qty_items / $limit);
$pageid = isset($_GET['pageurlid']) ? $_GET['pageurlid'] : null;
$curr_page = array_search($pageid, $pagearr);
$next_page = $curr_page < $qty_pages ? $curr_page + 1 : null;
開發者ID:hscale,項目名稱:mtptool,代碼行數:31,代碼來源:pager.php


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