PHP Classes

File: examples/pager/example_mysql.php

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

Contents

Class file image Download
<?php
include 'config.php';
include
'A/Pager/MySQL.php';

$username = '';
$password = '';
$database = '';
$link = mysql_connect('localhost', $username, $password);
$errmsg = mysql_error($link);
mysql_select_db($database, $link);

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

include
'example.php';

?>