mvc/catalog-mvc/models/database/dao/DAO.php
# expects array of Column as where condition
expects array of Column as where condition
expects array of Column as where condition
protected function delete($whereColumnArray)
    {
        $where = $this->formatWhereClause($whereColumnArray);
        $sql = "DELETE FROM " .BQ .$this->tableName .BQ .$where;
        $sql = $this->db->prepare($sql);
        foreach ($whereColumnArray as $column) {
            $sql->bindValue(CL .$column->getName(), $column->getValue());
        }
        $sql->execute();
    }
protected function delete ( $ whereColumnArray ) { $ where = $ this -> formatWhereClause ( $ whereColumnArray ) ; $ sql = " DELETE FROM  " . BQ . $ this -> tableName . BQ . $ where ; $ sql = $ this -> db -> prepare ( $ sql ) ; foreach ( $ whereColumnArray as $ column ) { $ sql -> bindValue ( CL . $ column -> getName ( ) , $ column -> getValue ( ) ) ; } $ sql -> execute ( ) ; }
expects array of Column as where condition
expects array of Column as where condition
# echo $sql ."<br>"; die(); #  echo CL .$column->getName() . " = " . $column->getValue() . "<br>"  ;