From d068d94b5e62de2f80164fd8062adce6e0ad93ae Mon Sep 17 00:00:00 2001 From: Harvie Date: Sat, 14 May 2011 01:28:13 +0200 Subject: [PATCH] Commented out unused functions in database backend so we will not have to reimplement those when we'll be migrating to PDO --- wwwroot/inc/database.inc | 9 ++++++--- wwwroot/inc/eventz/delete_friend.inc | 21 +++++++-------------- wwwroot/inc/eventz/display.inc | 2 +- wwwroot/inc/result.inc | 10 ++++++++-- 4 files changed, 22 insertions(+), 20 deletions(-) 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 "