PHP ".PHP_VERSION."\n"; try { $dbt = 'oci8po'; switch($dbt) { case 'oci8po': $db = NewADOConnection("oci8po"); $db->Connect('','scott','natsoft'); break; default: case 'mysql': $db = NewADOConnection("mysql"); $db->Connect('localhost','root','','test'); break; case 'mysqli': $db = NewADOConnection("mysqli://root:@localhost/test"); //$db->Connect('localhost','root','','test'); break; } $db->debug=1; $cnt = $db->GetOne("select count(*) from adoxyz where ?Prepare("select * from adoxyz where ?ErrorMsg(),"\n"; $rs = $db->Execute($stmt,array(10,20)); $i = 0; foreach($rs as $v) { $i += 1; echo "rec $i: "; adodb_pr($v); adodb_pr($rs->fields); flush(); } if ($i != $cnt) die("actual cnt is $i, cnt should be $cnt\n"); $rs = $db->Execute("select bad from badder"); } catch (exception $e) { adodb_pr($e); echo "

adodb_backtrace:

\n"; $e = adodb_backtrace($e->gettrace()); } $rs = $db->Execute("select distinct id, firstname,lastname from adoxyz order by id"); echo "Result=\n",$rs; ?>