$msg
";
flush();
}
function CheckWS($conn)
{
global $ADODB_EXTENSION;
include_once('../session/adodb-session.php');
if (defined('CHECKWSFAIL')){ echo " TESTING $conn ";flush();}
$saved = $ADODB_EXTENSION;
$db = ADONewConnection($conn);
$ADODB_EXTENSION = $saved;
if (headers_sent()) {
print "
White space detected in adodb-$conn.inc.php or include file...
"; //die(); } } function do_strtolower(&$arr) { foreach($arr as $k => $v) { if (is_object($v)) $arr[$k] = adodb_pr($v,true); else $arr[$k] = strtolower($v); } } function CountExecs($db, $sql, $inputarray) { global $EXECS; $EXECS++; } function CountCachedExecs($db, $secs2cache, $sql, $inputarray) { global $CACHED; $CACHED++; } // the table creation code is specific to the database, so we allow the user // to define their own table creation stuff function testdb(&$db,$createtab="create table ADOXYZ (id int, firstname char(24), lastname char(24), created date)") { GLOBAL $ADODB_vers,$ADODB_CACHE_DIR,$ADODB_FETCH_MODE,$ADODB_COUNTRECS; //adodb_pr($db); ?> Close(); if ($rs2) $rs2->Close(); if ($rs) $rs->Close(); $db->Close(); if ($db->transCnt != 0) Err("Error in transCnt=$db->transCnt (should be 0)"); printf("Total queries=%d; total cached=%d
",$EXECS+$CACHED, $CACHED); flush(); } function adodb_test_err($dbms, $fn, $errno, $errmsg, $p1=false, $p2=false) { global $TESTERRS,$ERRNO; $ERRNO = $errno; $TESTERRS += 1; print "** $dbms ($fn): errno=$errno errmsg=$errmsg ($p1,$p2)"; } if (sizeof($_GET) == 0) $testmysql = true; foreach($_GET as $k=>$v) { //global $$k; $$k = $v; } ?>
vers=",ADOConnection::Version(); ?>
ADODB Database Library (c) 2000-2012 John Lim. All rights reserved. Released under BSD and LGPL, PHP .