MikeAuz1979
Programmer
Hi,
Using PHP, Apache and a ms sql 2000 db I'm trying to recreate the simple scrolling through a recordset process as depicted on
I get everything except for the scroll links and I'm wondering if this method works for ms sql as well as Mysql which is used in the example.
Below is the code I'm using
Thanks for any help
Using PHP, Apache and a ms sql 2000 db I'm trying to recreate the simple scrolling through a recordset process as depicted on
I get everything except for the scroll links and I'm wondering if this method works for ms sql as well as Mysql which is used in the example.
Below is the code I'm using
Thanks for any help
Code:
<?php
include_once('../adodb5/adodb.inc.php');
include_once('../adodb5/adodb-pager.inc.php');
session_start();
$db = NewADOConnection('odbc_mssql');
$dsn = "Driver={SQL Server};Server=localhost;Database=fb34_Yims;";
$db->Connect($dsn, 'sa', 'potty');
$sql ="select acct_i from account";
$pager = new ADODB_Pager($db,$sql);
$pager->Render($rows_per_page=5);
php?>