PHP Classes

File: examples/pager/example_adodb.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/pager/example_adodb.php   Download  
File: examples/pager/example_adodb.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: 475 bytes
 

Contents

Class file image Download
<?php
include 'config.php';
#include 'adodb_lite/adodb.inc.php';
include 'adodb/adodb.inc.php';
include
'A/Pager/ADODB.php';

$username = '';
$password = '';
$database = '';
$db = ADONewConnection("mysql://$username:$password@localhost/$database");
$ADODB_FETCH_MODE = ADODB_FETCH_ASSOC;

// create a data object that has the interface needed by the Pager object
$datasource = new A_Pager_ADODB('SELECT id,title FROM faq', $db);

include
'example.php';

?>