PHP Classes

File: app/controls/sys_configs.php

Recommend this page to a friend!
  Classes of Laudir Bispo   PHP Real Estate Website   app/controls/sys_configs.php   Download  
File: app/controls/sys_configs.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Real Estate Website
Manage the properties of a real estate business
Author: By
Last change:
Date: 3 years ago
Size: 751 bytes
 

Contents

Class file image Download
?<?php
require_once ($_SERVER['DOCUMENT_ROOT'].'/config/autoload.php');

use
config\connect_db;

$con_db = new connect_db();
$con = $con_db->connect();

$configs = $con->query(" SELECT * FROM `system_configs`");

while(
$reg = $configs->fetch_array() )
{
   
$_SESSION['config']['slide-lg'] = $reg['slide-lg'];
   
$_SESSION['config']['slide-md'] = $reg['slide-md'];
   
$_SESSION['config']['slide-sm'] = $reg['slide-sm'];
   
$_SESSION['config']['slide-xs'] = $reg['slide-xs'];
   
$_SESSION['config']['slide_image_quality'] = $reg['slide_image_quality'];
   
$_SESSION['config']['vehicles_image_quality'] = $reg['vehicles_image_quality'];
   
$_SESSION['config']['gallery_image_quality'] = $reg['gallery_image_quality'];
   
}

$configs->close();