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

/**
Attention:
you have to switch to v.0.3
*/
include_once('config.inc.php');

$link = mysqli_connect(
	db_default_host, 
	db_default_user,
	db_default_password,
	db_default_database
	) OR die(mysqli_error());
if (!$link) {
    die('keine Verbindung möglich: ' . mysql_error());
}

$sql = "SELECT * FROM geodb_textdata";
 
$dataObject = QDataObject::getInstance('mysqli',$link, $sql);
$dataObject->byPage(($_GET["p"]?intval($_GET["p"]):1));


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