Location: PHPKode > scripts > QDataObject > sample.mysqli.php
<?php 

include_once('config.inc.php');

$link = mysqli_connect(
	db_default_host, 
	db_default_user, 
	db_default_password,
	db_default_database
	) OR die(mysqli_error());


$sql = "SELECT * FROM order_details"; 

$result = mysqli_query($link, $sql);

$dataObject = QDataObject::getInstance('mysqli',$result, $link);
$dataObject->byPage((int)$_GET["p"], (int)$_GET["s"]);
//$dataObject->byLimit(1000,5);

print "<pre>";
print_r($dataObject);
print "</pre>";
Return current item: QDataObject