本文整理汇总了PHP中dbconnection::getActiveProductsRecords方法的典型用法代码示例。如果您正苦于以下问题:PHP dbconnection::getActiveProductsRecords方法的具体用法?PHP dbconnection::getActiveProductsRecords怎么用?PHP dbconnection::getActiveProductsRecords使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dbconnection
的用法示例。
在下文中一共展示了dbconnection::getActiveProductsRecords方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dbconnection
// deconnection already included in Validation
$dbobj = new dbconnection();
$vobj = new Validation();
session_start();
if (!isset($_SESSION['uid'])) {
echo "You are not authoriezed to enter this page. You have to login first";
exit;
}
$uid = $_SESSION['uid'];
if (!$vobj->ifSuperUserId($uid)) {
echo "You are not authoriezed to enter this page. Only for admins.";
exit;
}
$_products_img = "../images/product/";
$_users_img = "../images/user/";
$productsArr = $dbobj->getActiveProductsRecords();
$_controller = "../controller/";
$_layout = "../layout/";
$_add_product = "../layout/add_product.php";
$uname = $dbobj->SelectColumn('uname', 'user', 'uid', $uid);
$uname = $uname[0];
$img = $_users_img . $uname . ".jpeg";
include "common/header.php";
?>
<html>
<head>
<title></title>
</head>
<body>
<div class="container">