当前位置: 首页>>代码示例>>PHP>>正文


PHP DatabaseConnection::getPages方法代码示例

本文整理汇总了PHP中DatabaseConnection::getPages方法的典型用法代码示例。如果您正苦于以下问题:PHP DatabaseConnection::getPages方法的具体用法?PHP DatabaseConnection::getPages怎么用?PHP DatabaseConnection::getPages使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DatabaseConnection的用法示例。


在下文中一共展示了DatabaseConnection::getPages方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

        $locationFK = $row['LocationFK'];
        $userPK = $row['UserPk'];
        $userRole = $row['RoleFk'];
    }
    $_SESSION['userLoc'] = $locationFK;
    $_SESSION['userPK'] = $userPK;
    $_SESSION['userRole'] = $userRole;
    $_SESSION['userLocationDesc'] = $location;
    $_SESSION['fullName'] = $fullName;
}
//echo $locationFK;
$bookCount = $obj->getArtefactCount($locationFK, 'Book');
$videoCount = $obj->getArtefactCount($locationFK, 'Video');
$audioCount = $obj->getArtefactCount($locationFK, 'Audio');
$magazineCount = $obj->getArtefactCount($locationFK, 'Magazine');
$pages = $obj->getPages($_SESSION['userPK']);
// 	/print_r($pages);
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
 <link rel="icon"
          type="image/png"
          href="../../images/logo.png"/>

    <LINK REL="SHORTCUT ICON"
开发者ID:jaisabari,项目名称:globalArchivev2,代码行数:31,代码来源:dashboard.php

示例2: header

<?php

define("PAGENAME", "Report");
include '../common/Config.php';
session_start();
if (!isset($_SESSION['artefactUser'])) {
    header("Location: ../../index.php");
}
include '../common/DatabaseConnection.php';
$db = new DatabaseConnection();
$db->createConnection();
$pages = $db->getPages($_SESSION['userPK']);
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <link rel="icon"
          type="image/png"
          href="../../images/logo.png"/>

    <LINK REL="SHORTCUT ICON"
          HREF="../../images/logo.png">


    <title>Global Archive</title>
    <link href="../../css/bootstrap.min.css" rel="stylesheet">
开发者ID:jaisabari,项目名称:globalArchivev2,代码行数:31,代码来源:Reports.php


注:本文中的DatabaseConnection::getPages方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。