database abstraction, part I

This commit is contained in:
Alexander M. Turek
2004-01-17 01:47:36 +00:00
parent e0c7f702b4
commit 7eced930bc
112 changed files with 1216 additions and 1060 deletions

View File

@@ -0,0 +1,18 @@
<?php
/* $Id$ */
// vim: expandtab sw=4 ts=4 sts=4:
require_once('./libraries/dbi/' . $cfg['Server']['extension'] . '.dbi.lib.php');
function PMA_DBI_query($query, $dbh = '') {
if (empty($dbh)) {
$dbh = $GLOBALS['userlink'];
}
$res = PMA_DBI_try_query($query, $dbh)
or PMA_mysqlDie(PMA_DBI_getError($dbh), $query);
return $res;
}
?>