| | |
| | | // Check der variablen |
| | | function quote($formfield) |
| | | { |
| | | return addslashes($formfield); |
| | | if(!$this->connect()){ |
| | | $this->updateError('WARNING: mysql_connect: Used addslashes instead of mysql_real_escape_string'); |
| | | return addslashes($formfield); |
| | | } |
| | | |
| | | return mysql_real_escape_string($formfield, $this->linkId); |
| | | } |
| | | |
| | | // Check der variablen |
| | |
| | | } |
| | | } |
| | | |
| | | function closeConn() { |
| | | public function closeConn() |
| | | { |
| | | if($this->linkId) |
| | | { |
| | | mysql_close($this->linkId); |
| | | return true; |
| | | } else { return false; } |
| | | } |
| | | |
| | | } |
| | | |
| | | function freeResult() { |
| | | |
| | | |
| | | } |
| | | public function freeResult($query) |
| | | { |
| | | if(mysql_free_result($query)) |
| | | { |
| | | return true; |
| | | } else { |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | function delete() { |
| | | |