本文整理汇总了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"
示例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">