My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members

MySQL PHP Framework very alpha version

Short usage guide

not complete

// Connecting
$link = new zenMysqlLink();
$link->connect('localhost', 'root', '123');
// Selecting database
$database = $link['database_name'];
// Selecting table
$table = $database['table_name'];
// Making sql query
$result = $link->query("SHOW DATABASES");
$result = $database->query("SHOW TABLES");
$result = $table->query("WHERE 1"); // will be prefixed by SELECT * FROM `table_name`
// Fetching from result
$item = $result->fetch();
// Using items
$item['field'] = 'value';
Powered by Google Project Hosting