Commit 1b14ca44 authored by Axel Tomas Baltierra Hernandez's avatar Axel Tomas Baltierra Hernandez
Browse files

stilos, administradores y clientes

parent d14ca5d2
Loading
Loading
Loading
Loading

php/verClientes.php

0 → 100644
+22 −0
Original line number Diff line number Diff line
<?php
require "../../php/conexion.php";
// Consulta SQL para obtener todos los clientes
$sqlVerClientes = "SELECT idsolicitante, CONCAT(so_nombre, ' ', so_apP, ' ', so_apM) AS nombre, so_correo FROM solicitante";

// Ejecutar consulta
$res = $con->query($sqlVerClientes);

if ($res->num_rows > 0) {
    while ($row = $res->fetch_assoc()) {
        echo '<tr>
                <td>' . htmlspecialchars($row["nombre"]) . '</td>
                <td>' . htmlspecialchars($row["so_correo"]) . '</td>
                <td>
                    <input class="form-check-input me-1" type="radio" name="clienteSeleccionado" value="' . $row["idsolicitante"] . '" aria-label="Seleccionar cliente">
                </td>
              </tr>';
    }
} else {
    echo '<tr><td colspan="3" style="color: red;">No se encontraron clientes disponibles</td></tr>';
}
?>
Loading