add effect row

This commit is contained in:
October 2014-10-14 02:08:17 +08:00
parent 0d266437be
commit b3db8de81a
2 changed files with 6 additions and 1 deletions

View File

@ -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();
}

View File

@ -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;