function initFile($sId, $sTitle, $sCategory, $sTags, $sDesc) { global $sModule; $oDb = BxDolDb::getInstance(); $sUri = mp3_genUri($sTitle); $sUriPart = empty($sUri) ? "" : "`Uri`='" . $sUri . "', "; $sDBModule = DB_PREFIX . ucfirst($sModule); getResult("UPDATE `" . $sDBModule . "Files` SET `Categories`= ?, `Title`= ?, " . $sUriPart . "`Tags`= ?, `Description`= ? WHERE `ID`= ?", [$sCategory, $sTitle, $sTags, $sDesc, $sId]); return $oDb->getAffectedRows() > 0 ? true : false; }
function initFile($sId, $sTitle, $sCategory, $sTags, $sDesc) { global $oDb; global $sModule; global $oDb; $sUri = mp3_genUri($sTitle); $sUriPart = empty($sUri) ? "" : "`Uri`='" . $sUri . "', "; $sDBModule = DB_PREFIX . ucfirst($sModule); getResult("UPDATE `" . $sDBModule . "Files` SET `Categories`='" . $sCategory . "', `Title`='" . $sTitle . "', " . $sUriPart . "`Tags`='" . $sTags . "', `Description`='" . $sDesc . "' WHERE `ID`='" . $sId . "'"); return mysql_affected_rows($oDb->rLink) > 0 ? true : false; }