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