I am editing a reservation system with PHP
and I want to make some inquiries.
I have 3 Tables
w_clases
w_clientes
w_reservas
In summary I am trying to make a query with a form that puts the start date and end date and show it to me, I have this for the query:
SELECT cl.nombre,c.nombre From w_reservas R
INNER JOIN wp_clases cl on R.id_clase =cl.id
INNER JOIN w_clientes c on cl.id = r.id_usuario
WHERE r.fecha_reserva BETWEEN '2014-01-01' AND '2017-01-01'
But I can not get it to work, in summary in the query I want it to appear:
Nombre clase | Fecha Clase | Hora clase | Nombre Usuario
-------------|-------------|------------|---------------