public function delete($table, $where, $limit = 0) {
        $this->sql = sprintf("DELETE FROM `%s` %s%s;", SafeString::makeSafe($table), $this->where($where), $this->limit($limit));
        $this->executeQuery(false);
        return $this->numRows() ? true : false;
    }
public function delete($table, $where, $limit = 0) {
        $this->sql = sprintf("DELETE FROM `%s` %s%s;", SafeString::makeSafe($table), $this->where($where), $this->limit($limit));
        $this->executeQuery(false);
        return $this->numRows() ? true : false;
    }
public function delete ( $ table , $ where , $ limit = 0 ) { $ this -> sql = sprintf ( "DELETE FROM `%s` %s%s;" , SafeString :: makeSafe ( $ table ) , $ this -> where ( $ where ) , $ this -> limit ( $ limit ) ) ; $ this -> executeQuery ( false ) ; return $ this -> numRows ( ) ? true : false ; }
Deletes records from the given table based on the variables given
@param string $table This should be the table you wish to delete the records from
@param array $where This should be an array of for the where statement
@param int $limit The number of results you want to return 0 is default and will delete all results that match the query, else should be formated as a standard integer
Deletes records from the given table based on the variables given