prepare($query); $stmt->execute(); $pedidos = $stmt->fetchAll(PDO::FETCH_ASSOC); header('Content-Type: application/vnd.ms-excel; charset=utf-8'); header('Content-Disposition: attachment; filename="masivo_shalom.xls"'); header('Pragma: no-cache'); header('Expires: 0'); $output = '
'; $output .= '| DESTINATARIO (DOC) | '; $output .= 'TELF. DESTINATARIO | '; $output .= 'CONTACTO (DOC) | '; $output .= 'TELF. CONTACTO | '; $output .= 'NRO GRR | '; $output .= 'ORIGEN | '; $output .= 'DESTINO | '; $output .= '
|---|---|---|---|---|---|---|
| ' . $destinatario . ' | '; $output .= '' . $celular . ' | '; $output .= '' . $destinatario . ' | '; $output .= '' . $celular . ' | '; $output .= ''; // NRO GRR $output .= ' | '; // ORIGEN $output .= ' | ' . $destino . ' | '; $output .= '