]> andersk Git - sql-web.git/blobdiff - lib/dbaccess.lib.php
move SQL to use external joe libraries
[sql-web.git] / lib / dbaccess.lib.php
index 150aeabb552c252621c9862e5ac93e718fb7f3cb..19952608ba034cd9627ca56ff2a8c9cbda068c5d 100644 (file)
@@ -3,7 +3,7 @@
        (c) 2005 Joe Presbrey
 */
 
-require_once('joe.lib.php');
+require_once('joe/util.lib.php');
 
 function DBMaster($sql) {
        sessTime($sql);
@@ -66,7 +66,7 @@ function checkQuotas($userId=null) {
                $DBId = $db['DatabaseId'];
                $arr['dLastCheck'] = 'NOW()';
                $arr['nBytes'] = calcDBSize($db['Name']);
-               $sql = sprintf("UPDATE DB %s WHERE DatabaseId = '%s'",
+               $sql = sprintf("UPDATE DB SET %s WHERE DatabaseId = '%s'",
                                                buildSQLSet($arr),
                                                mysql_escape_string($DBId));
                DBUpdate($sql);
This page took 0.046091 seconds and 4 git commands to generate.