<?php
$conn = new mysqli('localhost', 'root', '', 'ppuphcom_pos_polleria');
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}
$res = $conn->query("SELECT id, nombre, icono FROM menu ORDER BY id ASC");
while($row = $res->fetch_assoc()) {
    echo "ID: " . $row['id'] . " | Nombre: " . $row['nombre'] . " | Icono: [" . $row['icono'] . "]\n";
}
$conn->close();
?>
