object-oriented/login-system/class/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($where)
    {
        $condition = "";
        foreach ($where as $column) {
            $condition .= QT_A .$column->getName(). QT_A . " = " . QT .$column->getValue(). QT . " AND ";
        }
        $condition = substr($condition, 0, - strlen(" AND "));
        $sql = "DELETE FROM " . QT_A .$this->tableName. QT_A . " WHERE " .$condition;
        $this->executeQuery($sql);
    }
protected function delete ( $ where ) { $ condition = " " ; foreach ( $ where as $ column ) { $ condition .= QT_A . $ column -> getName ( ) . QT_A . "  =  " . QT . $ column -> getValue ( ) . QT . "  AND  " ; } $ condition = substr ( $ condition , 0 , - strlen ( "  AND  " ) ) ; $ sql = " DELETE FROM  " . QT_A . $ this -> tableName . QT_A . "  WHERE  " . $ condition ; $ this -> executeQuery ( $ sql ) ; }
expects array of Column as where condition
expects array of Column as where condition
# echo $condition; die(); # echo $sql; die();