by date chosen in xml

0

I am using a datepicker to choose the date on the company website that stage. I have already been able to include the status that is chosen in XML, however, I need to do this with the date and I'm just not sure how to authenticate.

Below is the section that authenticates the statuses and needs to confirm the dates.

function export(){
    global $_SYSTEM;

    $usuario = $_SESSION[$_SYSTEM['ID']."usuario"];


    $resultado = banco_select_name
    (
        banco_campos_virgulas(Array(
            'id_pedidos',
            'codigo',
            'senha',
            'data',
            'valor_total',
            'status',
        ))
        ,
        "pedidos",
        "WHERE id_loja='".$usuario['id_loja']."'"
        .($_REQUEST['only-paid'] ? " AND status='A'" : '')
        .($_REQUEST['produtoId'] && $_REQUEST['produtoId'] != 'T' ? " AND status='".$_REQUEST['produtoId']."'" : '')
        .($_REQUEST['WHERE b2make-button-date-datepicker1 => now()'] && $_REQUEST['WHERE b2make-button-date-picke2r =< now ()'] != 'T' ? " AND status='".$_REQUEST['produtoId']."'" : '')
    );
    
asked by anonymous 11.07.2018 / 14:50

0 answers