PHP Classes

File: mysql.php

Recommend this page to a friend!
  Classes of Joakim Ling   MySQL class   mysql.php   Download  
File: mysql.php
Role: Example script
Content type: text/plain
Description: Example file
Class: MySQL class
MySQL wrapper with simultaneous query support
Author: By
Last change:
Date: 20 years ago
Size: 347 bytes
 

Contents

Class file image Download
<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();

?>