<?php
if (!empty($_POST['idped'])) {
    require '../../conexion.php';
    $det = consultas::get_datos("SELECT * from v_servicios_pedidos_detalle where id_ped = ".$_POST['idped']);?>
    <div class="col-md-10">
        <table class="table table-bordered">
            <tr>
                <th colspan="3" class="text-center">DETALLES DE PEDIDO</th>
            </tr>
            <tr>
                <th class="text-center">Descripción</th>
                <th class="text-center">Cantidad</th>
                <th class="text-center">Precio</th>

            </tr>
    <?php foreach ($det as $d) { ?>
                <tr>
                    <td class="text-left"><?= $d['art_descri']; ?></td>
                    <td class="text-center"><?= $d['ped_cant']; ?></td>
                    <td class="text-center"><?= $d['ped_precio']; ?></td>

                </tr>
    <?php } ?>

        </table>
    </div>
<?php } ?>