function query($stmt, $arr = NULL)
{
    global $login_id, $_SERVER;
    global $db;
    if (is_string($stmt) == 0) {
        echo "wrong type first arg to query";
        error();
        exit;
    }
    $q = $db->query($stmt, $arr);
    ckerr($stmt, $q);
    return $q;
}
Exemple #2
0
function query_db($dp, $stmt, $arr = NULL)
{
    $q = $dp->query($stmt, $arr);
    ckerr($stmt, $q);
    return $q;
}