Skip to content
Permalink
Browse files

Added Generic Connector

  • Loading branch information...
wakdev committed May 14, 2013
1 parent 346a6ff commit 33c0a22434b22937c6914dd22f768286ba98d519
@@ -227,7 +227,7 @@ public function quote($value,$real_escape=false){
* @return string the escaped string
*/
public function escape($value,$real_escape=false){
if ($this->magic_quotes) {
if (!$this->magic_quotes) {
return mysql_real_escape_string($value,getHandle());
}else{
return $value;
@@ -217,7 +217,7 @@ public function quote($value,$real_escape=false){
* @return string the escaped string
*/
public function escape($value,$real_escape=false){
if ($this->magic_quotes) {
if (!$this->magic_quotes) {
return $this->mysqli->real_escape_string($value);
}else{
return $value;
@@ -219,7 +219,7 @@ public function quote($value,$real_escape=false){
public function escape($value,$real_escape=false){
//quote the value with PDO::quote() function then
//remove enclosing quotes to conform "escape" protocol
if ($this->magic_quotes) {
if (!$this->magic_quotes) {
return substr($this->_db_handle->quote($value),1,-1);
}else{
return $value;

0 comments on commit 33c0a22

Please sign in to comment.
You can’t perform that action at this time.