include_once("adodb5/tohtml.inc.php");
$db = NewADOConnection('mysql');
$db->Connect("localhost", "root", "", "upload");
$sql="SELECT * FROM `pic`";
$rs2=$db->Execute($sql);
echo rs2html($rs2);
PHP ADODB 实现内容自动分页功能
复制代码 代码如下:
include_once("adodb5/adodb-pager.inc.php");
session_start();
$db = NewADOConnection('mysql');
$db->Connect("localhost", "root", "", "upload");
$db->Execute("set names 'GBK'");
$sql="SELECT * FROM `pic`";
$pager=new ADODB_Pager($db,$sql);
$pager->Render(2);
您可能感兴趣的文章: