fixed typo in security checks for prescription access
[openemr.git] / library / adodb / tests / testpear.php
blob05ef8ca87199c8f324a2c7f0d9c81e4f9a042649
1 <?php
2 /*
3 V4.20 22 Feb 2004 (c) 2000-2004 John Lim (jlim@natsoft.com.my). All rights reserved.
4 Released under both BSD license and Lesser GPL library license.
5 Whenever there is any discrepancy between the two licenses,
6 the BSD license will take precedence.
7 Set tabs to 4 for best viewing.
9 Latest version is available at http://php.weblogs.com/
12 error_reporting(E_ALL);
14 include_once('../adodb-pear.inc.php');
15 $username = 'root';
16 $password = '';
17 $hostname = 'localhost';
18 $databasename = 'xphplens';
19 $driver = 'mysql';
21 $dsn = "$driver://$username:$password@$hostname/$databasename";
23 $db = DB::Connect($dsn);
24 $db->setFetchMode(ADODB_FETCH_ASSOC);
25 $rs = $db->Query('select firstname,lastname from adoxyz');
26 $cnt = 0;
27 while ($arr = $rs->FetchRow()) {
28 print_r($arr);
29 print "<br>";
30 $cnt += 1;
33 if ($cnt != 50) print "<b>Error in \$cnt = $cnt</b>";