Location: PHPKode > scripts > MySQL php class > mysql-php-class/mysql.php
<pre>
<?php

include ("./mysql.class.php");

$objMySQL = new MySQL ("localhost", "user", "passwd", "database");

/**
 * This will run an unbuffered query for 5 seconds then kill thread
 */
$objMySQL->SelectUnbufferedQuery(5, "*", "leads");
while ($row = $objMySQL->FetchUnbufferedArray())
	print_r($row);

$objMySQL->CloseDB();

?>
Return current item: MySQL php class