<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();
?>
|