Skip to content

Commit 516e0e8

Browse files
committed
Updated comments in db lib.
1 parent 02bf997 commit 516e0e8

File tree

1 file changed

+2
-42
lines changed

1 file changed

+2
-42
lines changed

interface/lib/classes/db_mysql.inc.php

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,12 @@ public function insertID() {
150150
}
151151

152152

153-
// Check der variablen
154-
// Really.. using quote should be phased out in favor of using bind_param's. Though, for legacy code..
155-
// here's the equivalent
153+
//* Function to quote strings
156154
public function quote($formfield) {
157155
return $this->escape_string($formfield);
158156
}
159157

160-
// Check der variablen
158+
//* Function to unquotae strings
161159
public function unquote($formfield) {
162160
return stripslashes($formfield);
163161
}
@@ -172,44 +170,6 @@ public function toLower($record) {
172170
return $out;
173171
}
174172

175-
/*
176-
//* These functions are deprecated and will be removed.
177-
function insert($tablename,$form,$debug = 0)
178-
{
179-
if(is_array($form)){
180-
foreach($form as $key => $value)
181-
{
182-
$sql_key .= "$key, ";
183-
$sql_value .= "'".$this->check($value)."', ";
184-
}
185-
$sql_key = substr($sql_key,0,strlen($sql_key) - 2);
186-
$sql_value = substr($sql_value,0,strlen($sql_value) - 2);
187-
188-
$sql = "INSERT INTO $tablename (" . $sql_key . ") VALUES (" . $sql_value .")";
189-
190-
if($debug == 1) echo "SQL-Statement: ".$sql."<br><br>";
191-
$this->query($sql);
192-
if($debug == 1) echo "mySQL Error Message: ".$this->errorMessage;
193-
}
194-
}
195-
196-
function update($tablename,$form,$bedingung,$debug = 0)
197-
{
198-
199-
if(is_array($form)){
200-
foreach($form as $key => $value)
201-
{
202-
$insql .= "$key = '".$this->check($value)."', ";
203-
}
204-
$insql = substr($insql,0,strlen($insql) - 2);
205-
$sql = "UPDATE $tablename SET " . $insql . " WHERE $bedingung";
206-
if($debug == 1) echo "SQL-Statement: ".$sql."<br><br>";
207-
$this->query($sql);
208-
if($debug == 1) echo "mySQL Error Message: ".$this->errorMessage;
209-
}
210-
}
211-
*/
212-
213173
public function diffrec($record_old, $record_new) {
214174
$diffrec_full = array();
215175
$diff_num = 0;

0 commit comments

Comments
 (0)