Sentidos Café manages table bookings through a PHP/MySQL backend. Staff access a password-protected admin panel (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Jimmy13anhelo/paginaweb2.github.io/llms.txt
Use this file to discover all available pages before exploring further.
reservas/ver_reservas.php) that lists every upcoming reservation and allows editing or deletion. New bookings are created through reservas/guardar_reserva.php, which validates the POST data with mysqli_real_escape_string before writing to the sentidos_cafe_db database.
Database: sentidos_cafe_db
The application uses a single MySQL database named sentidos_cafe_db, created in script.sql:
conexion.php, which uses PDO with charset=utf8:
The reservas Table
The reservation schema is defined in script.sql:
Column Reference
Primary key. Automatically assigned by MySQL on insert. Displayed as
#1, #2, etc. in the admin panel table.Guest’s first name(s). Maximum 100 characters. Displayed alongside
apellidos in the admin view as a combined “Cliente” column.Guest’s family name(s). Maximum 100 characters.
Contact phone number. Stored as a string to accommodate international formats, country codes, and separators (e.g.
+51 987 654 321).Date of the reservation in
YYYY-MM-DD format. The admin panel renders this with date("d/m/Y", strtotime($fila['fecha_reserva'])) for local display.Reservation time in
HH:MM:SS format (24-hour). Displayed in the admin panel with a trailing hs suffix (e.g. 19:00:00 hs).Number of guests in the party. The booking form enforces a minimum of
1 via min="1" on the HTML input.Preferred seating area. The booking form offers three options via a
<select> dropdown:Terraza / Aire LibreSalón PrincipalZona VIP / Privada
Timestamp of when the reservation row was inserted. Defaults to
CURRENT_TIMESTAMP — no value needs to be supplied on insert.The pedidos Table
Completed orders from the menu panel are stored separately in the pedidos table, also defined in script.sql:
pedidos.producto is a TEXT column that stores a comma-separated list of ordered items (e.g. 2x Café Espresso, 1x Waffles), built by pedidos/guardar_pedidos.php before the INSERT.
Creating a Reservation
The admin booking form (reservas/guardar_reserva.php) submits via POST and runs the following INSERT:
fecha_registro is omitted because it has a DEFAULT CURRENT_TIMESTAMP and MySQL fills it in automatically.
Full Admin Workflow
Log in to the admin panel
Navigate to
Login/login.php and authenticate with admin credentials stored in the usuarios table. The session is started with session_start() and a $_SESSION['usuario_admin'] flag is set on success.Open the reservations panel
Go to
reservas/ver_reservas.php. The page fetches all rows ordered by id_reserva DESC so the newest reservation appears at the top.Add a new reservation
Click Añadir Nueva Reserva to open
guardar_reserva.php. Fill in all required fields and click Guardar Reserva. On success, the page redirects back to ver_reservas.php.