$msg
";
flush();
}
function CheckWS($conn)
{
global $ADODB_EXTENSION;
include_once('../session/adodb-session.php');
$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) { $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, $HTTP_GET_VARS,$ADODB_COUNTRECS; ?> 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); } 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($HTTP_GET_VARS) == 0) $testmysql = true; foreach($HTTP_GET_VARS as $k=>$v) { //global $$k; $$k = $v; } if (strpos(PHP_VERSION,'5') === 0) { //$testaccess=1; //$testmssql = 1; //$testsqlite=1; } ?>
ADODB Database Library (c) 2000-2004 John Lim. All rights reserved. Released under BSD and LGPL.