PHP Classes

File: examples/db/example_tabledatagateway_sqlite.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/db/example_tabledatagateway_sqlite.php   Download  
File: examples/db/example_tabledatagateway_sqlite.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 8 years ago
Size: 463 bytes
 

Contents

Class file image Download
<?php
include 'config.php';
#include 'A/Db/Sqlite.php';
#include 'A/Db/Tabledatagateway.php';

class Projects extends A_Db_Tabledatagateway
{
}

$db = new A_Db_Sqlite3($ConfigArray['DBDSN_SQLITE']);
$db->connect();
if (
$db->isError()) die('ERROR: ' . $db->getMessage());

$project = new Projects($db);

$rows = $project->find(2);
dump($project->sql);
dump($rows);

$rows = $project->find('clients_id=', 1);
dump($project->sql);
dump($rows);