I'm trying to list results from two related tables, but I'm not capable.
These are the simplified tables:
table1
id | fecha
table2
id | horario
I'm trying to filter the results by date range and show the time column of the other table.
My code editor shows me in purple the text tabla1.id = tabla2.id so I guess that part will not be well formulated.
"SELECT * FROM tabla1 JOIN tabla2 ON tabla1.id = tabla2.id WHERE fecha BETWEEN '$fechahoy' AND '$fechahoy' "
Thank you very much for your time and help
Regards,