public function deleteRecord($tablename, $where)
    {
        if (!empty($tablename) && !empty($where)) {
            $sql = "DELETE FROM ".$tablename." WHERE ".$where;
            return $this->write($sql, DatabaseInterface::AFFECTED_ROWS);
        }
    }
public function deleteRecord($tablename, $where)
    {
        if (!empty($tablename) && !empty($where)) {
            $sql = "DELETE FROM ".$tablename." WHERE ".$where;
            return $this->write($sql, DatabaseInterface::AFFECTED_ROWS);
        }
    }
public function deleteRecord ( $ tablename , $ where ) { if ( ! empty ( $ tablename ) && ! empty ( $ where ) ) { $ sql = "DELETE FROM " . $ tablename . " WHERE " . $ where ; return $ this -> write ( $ sql , DatabaseInterface :: AFFECTED_ROWS ) ; } }
Provides convenience method for deleting records matching a WHERE clause

@param string $tablename Table to delete from
@param string $where     Where clause used to find the records to delete,
ex. "id = '2'", "title LIKE '%example%' AND status = '2'"

@return int Number of affected rows
@throws DatabaseException if tablename or where clause is empty
Provides convenience method for deleting records matching a WHERE clause