From: Harvie Date: Fri, 13 May 2011 23:28:13 +0000 (+0200) Subject: Commented out unused functions in database backend so we will not have to reimplement... X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=d068d94b5e62de2f80164fd8062adce6e0ad93ae;p=mirrors%2FKyberia-bloodline.git Commented out unused functions in database backend so we will not have to reimplement those when we'll be migrating to PDO --- diff --git a/wwwroot/inc/database.inc b/wwwroot/inc/database.inc index 8fcef4e..e378192 100644 --- a/wwwroot/inc/database.inc +++ b/wwwroot/inc/database.inc @@ -57,9 +57,11 @@ function connect($url,$user,$password,$database, $halt_on_error = true) { return true; } +/* DEPRECATED! function closeMysql() { mysql_close($this->_linkId); } +*/ function query($sql) { @@ -101,8 +103,8 @@ function query($sql) { return new result($this->_queryId, $sql); } - -function executequery($sql) { +/* DEPRECATED! +function executequery($sql) { //same as query()! return($this->query($sql)); } @@ -120,6 +122,7 @@ function executetransaction($queries) { function executeupdate($sql) { return($this->update($sql)); } +*/ function update($sql) { if (!$this->Master) { @@ -140,7 +143,7 @@ function getLastInsertId() { return(@mysql_insert_id($this->_linkId)); } -function exception($errorMessage) { +function exception($errorMessage) { //Internal only! echo "