<?php
$link = mysqli_connect(
"your-host",
"your-database-user",
"your-database-password",
'your-database'
) OR die(mysqli_error());
$sql = "SELECT * FROM order_details";
$result = mysqli_query($link, $sql);
//$dataObject = new QMysqliDataObject($result, $link);
//$dataObject->byLimit(1000,5);
//print "<pre>";
//print_r($dataObject);
//print "</pre>";
$dataObject = new QMysqliDataObject($result, $link);
$dataObject->byPage((int)$_GET["p"], (int)$_GET["s"]);
print "<pre>";
print_r($dataObject);
print "</pre>";
|