Location: PHPKode > projects > NOLA > includes/adodb/testpear.php
V1.71 18 Jan 2001 (c) 2000, 2001 John Lim (hide@address.com). All rights reserved.
  Released under both BSD license and Lesser GPL library license. 
  Whenever there is any discrepancy between the two licenses, 
  the BSD license will take precedence. 
  Set tabs to 4 for best viewing.
  Latest version is available at http://php.weblogs.com/

$db = NewADOConnection('pear');
$db->databaseDriver = 'mysql';
$db->debug = true;
$rs = $db->Execute('select * from products');

print "<h3>Test Errors</h3>";
$rs = $db->Execute('select * from productz');
if ($rs) print "Recordset returned - wrong!<br>";

Return current item: NOLA