PHP Classes

File: test/database/add.php

Recommend this page to a friend!
  Classes of Peter   Storage Class   test/database/add.php   Download  
File: test/database/add.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: 541 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' => 'Selina',
   
'password' => '25d55ad283aa400af464c76d713c07ad',
   
'group_id' => '1000',
   
'home' => '/home/Selina',
   
'shell' => '/bin/bash',
   
'is_disabled' => 0
);
$database->table($table);
$database->column($column);
print_r($database->add());