src/DataBaseAR.php
protected function prepareDelete($table, $where){
        $sql= 'DELETE FROM ' . $table . ' ';            
        if($where != ''){$sql.= " WHERE " . $where;}
        //Preparo la consulta y la retorno
        return  $this->connection->prepare($sql);
    }
protected function prepareDelete($table, $where){
        $sql= 'DELETE FROM ' . $table . ' ';            
        if($where != ''){$sql.= " WHERE " . $where;}
        //Preparo la consulta y la retorno
        return  $this->connection->prepare($sql);
    }
protected function prepareDelete ( $ table , $ where ) { $ sql = 'DELETE FROM ' . $ table . ' ' ; if ( $ where != '' ) { $ sql .= " WHERE " . $ where ; } //Preparo la consulta y la retorno return $ this -> connection -> prepare ( $ sql ) ; }
Retorna un PDOStatement DELETE armado en base a los parametros pasados
@param string $table
@param string $where
@return PDOStatement
Retorna un PDOStatement DELETE armado en base a los parametros pasados