PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Arthur Tumanyan  >  Config Storage  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example file
Class: Config Storage
Store and retrieve key-value entries in SQLite
Author: By
Last change:
Date: 5 years ago
Size: 1,033 bytes


Class file image Download
<!DOCTYPE html>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
require_once 'ConfigStorage.php';
// create an instance of class
            // default database file name is 'storage.db'
           // $my = new ConfigStorage('your.db');
$my = new ConfigStorage();
// setting debug mode,enables debug messages
// setting field types
// adding an entry
$my->AddEntry(1, 'hello');
// get an entry
echo $my->GetEntry(1);
// get all entries
// get count of all entries
echo $my->GetEntriesCount();
// delete an entry
// delete all entries