public static function runQuery($query) { $statement = null; if (self::$connectionId == false) { self::setErrorCode(ads_error()); self::setErrorString(ads_errormsg()); } else { $statement = ads_prepare(self::$connectionId, $query); ads_execute($statement); } return $statement; }
function UpdateBlob($table, $column, $val, $where, $blobtype = 'BLOB') { $sql = "UPDATE {$table} SET {$column}=? WHERE {$where}"; $stmtid = ads_prepare($this->_connectionID, $sql); if ($stmtid == false) { $this->_errorMsg = isset($php_errormsg) ? $php_errormsg : ''; return false; } if (!ads_execute($stmtid, array($val), array(SQL_BINARY))) { if ($this->_haserrorfunctions) { $this->_errorMsg = ads_errormsg(); $this->_errorCode = ads_error(); } return false; } return TRUE; }