PHP Classes

File: test/database/get.php

Recommend this page to a friend!
  Classes of Peter   Storage Class   test/database/get.php   Download  
File: test/database/get.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Storage Class
Manipulate data in arrays and store it in files
Author: By
Last change:
Date: 8 years ago
Size: 425 bytes
 

Contents

Class file image Download
<?php
include_once('../../config/config_setting.php');
$config = config_setting::get_config();
$base_path = $config['base_path'];
include_once(
"{$base_path}/database.php");
$database = new database();
$table = array('user');
$column = array('account', 'password', 'home');
$role = array('account' => 'Peter');
$database->table($table);
$database->column($column);
$database->role($role);
print_r($database->get($key));