Introduction: This is a detailed page of the PHP Oracle paging class. It introduces the related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 323428 'rolling = 'no'>
The following is a paging example.Program, It may seem complicated, but you only need to use it to find that "everything is so simple"
Example. php
<? PHP
$ Conn = maid ("test", "123456", "test123 ");
Include_once "pager. Inc. php ";
?>
<? PHP
/** Start paging test */
// {Initial paging object
$ Pager = new pager ();
/** Split select ID, name, age from test where age> 20 order by id desc */
$ Sqlarr = array ('conn' => $ Conn, // database connection
'Fields' => "ID, name, age", // query the subject sentence
'Table' => "test", // table name
'Condition' => "age> 20", // query Condition
'Order' => "order by id desc" // sorting method
);
If (! $ Pager-> listn ($ sqlarr, 10, $ page) // 10 entries are displayed on each page.
{
$ Pager-> errno = 10;
Die ($ pager-> errmsg ());
}
/
More articles on "php Oracle paging class"
Love J2EE follow Java Michael Jackson video station JSON online tools
Http://biancheng.dnbcw.info/php/323428.html pageno: 16.