add effect row
This commit is contained in:
parent
0d266437be
commit
b3db8de81a
@ -91,6 +91,9 @@ class Db{
|
|||||||
public function lastId(){
|
public function lastId(){
|
||||||
return $this->mysql->lastId();
|
return $this->mysql->lastId();
|
||||||
}
|
}
|
||||||
|
public function affectedRow(){
|
||||||
|
return $this->mysql->affectedRow();
|
||||||
|
}
|
||||||
public function error(){
|
public function error(){
|
||||||
return $this->mysql->error();
|
return $this->mysql->error();
|
||||||
}
|
}
|
||||||
|
@ -119,7 +119,9 @@ class Mysql{
|
|||||||
unset( $this->dbWrite );
|
unset( $this->dbWrite );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public function affectedRow(){
|
||||||
|
return mysqli_affected_rows( $this->dbWrite );
|
||||||
|
}
|
||||||
public function escape( $str ){
|
public function escape( $str ){
|
||||||
if( isset($this->dbRead)) $db = $this->dbRead ;
|
if( isset($this->dbRead)) $db = $this->dbRead ;
|
||||||
elseif( isset($this->dbWrite) ) $db = $this->dbWrite;
|
elseif( isset($this->dbWrite) ) $db = $this->dbWrite;
|
||||||
|
Loading…
Reference in New Issue
Block a user