/*/test
dg = new datagridclass('localhost','root','root','test',2,5);
if (isset(_GET['beginrecord']))
{
dg->__set('beginrecord', _GET['beginrecord']);
}
else
{
dg->__set('beginrecord', 0);
}
rs = dg->readdata('select * from testuser');
if(!rs)
{
echo '暂无数据……';
}
else
{
i=0;
echo "";
echo "idname";
while(i {
echo "";
echo rs[i]['id'];
echo "".rs[i]['uname'];
echo "";
i++;
}
echo "";
}
dg->navigate();
dg = NULL;
*/
?>
来源:CSDN