public function delete($tableName, $where = null)
    {
        list($where, $params) = $this->_buildWhere($where);
        $query = "DELETE FROM $tableName $where";
        
        $stmt = $this->prepare($query);
        $stmt->execute($params);
        return $stmt;
    }
public function delete($tableName, $where = null)
    {
        list($where, $params) = $this->_buildWhere($where);
        $query = "DELETE FROM $tableName $where";
        
        $stmt = $this->prepare($query);
        $stmt->execute($params);
        return $stmt;
    }
public function delete ( $ tableName , $ where = null ) { list ( $ where , $ params ) = $ this -> _buildWhere ( $ where ) ; $ query = "DELETE FROM $tableName $where" ; $ stmt = $ this -> prepare ( $ query ) ; $ stmt -> execute ( $ params ) ; return $ stmt ; }
Deletes row from a table

@param string $tableName
@param array|string $where
@return Statement
Deletes row from a table