5 $dbname = 'mantis_13x';
7 define( 'ADODB_ASSOC_CASE', $argc > 1 ?
(int)$argv[1] : 2 );
9 require_once('adodb.inc.php');
11 $ADODB_FETCH_MODE=ADODB_FETCH_ASSOC
;
12 //$ADODB_FETCH_MODE=ADODB_FETCH_BOTH;
13 $db = ADONewConnection('mysqli');
15 $db->PConnect($host, $u, $p, $dbname);
16 $sql="SELECT * FROM mantis_config_table";
18 $res=$db->Execute($sql);
19 print_r($res->fields
);
21 print_r($res->GetRowAssoc());