All pastes #904140 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-02-14 19:12 UTC
rendered paste body
function wuquery() {
        global $wudblink;
        if ( !is_resource($wudblink) )
                wuconnect();

        $args = func_get_args();
        if ( count($args) == 0 ) {
          return null;
        }
        if ( count($args) > 1 ) {
                $q = $args[0];
                $params = array_splice($args,1);
                $prepped = wuprepare_query($q,$params);
                return wuquery($prepped);
        }
        return mysql_query($args[0], $wudblink);
}