Within these several months, i've been working on creating a working prototype of the AMMS library. So for who which volunteered to contribute. Kindly download the following source :
AMMS for SqLite3 (link)
AMMS for MySQL (link)
For usage, here is the tutorial :
in your PHP file. Let's say index.php,
// Step 1 : importing the library. Assuming the amms.php inside the same directory
require("amms.php");
// Step 2 : Creating the library instance
$amms = new AMMS();
// Step 3 : Example Of Usage
// Create Table [syntax: CreateTable('table_name', array('column_name'=>'characteristics', ..));] , on fail will return false
$status = $amms->CreateTable('tablename', array("column1"=>"VARCHAR(5) PRIMARY KEY", "column2"=>"INTEGER"));
// Check for error
if(!$status) die($amms->getError());
// Register [syntax: Register(array('full name', 'username', 'password', access_level, account_status));], on fail will return false
$register = $amms->Register(array('name', 'username','password', 0, 0);
// Login [syntax: Login('username', 'password')] , on fail will return false
$login = $amms->Login('user', 'pass');
// Logout , on fail will return false
$logout = $amms->Logout();
// MANDATORY, Close all connections and flush memory
$amms->Done();
there are some more handy function, but these are the basic function. I'll cover them all up later.