Jump to content

Inner Join WHERE Clause in CakePHP


Iluvatar+

Recommended Posts

I have two tables 'bookings' & 'refnums' in the bookings table i have a foreign key of the 'id' coloum in the 'refnums' tables.

 

I need to query the refnums table so i get all the data from both tables in related order but i need to only bring back the results via a spefic date in the Booking table.

 

I have related both tables in the refnums model but i dont no how to use WHERE condisions to only bring back the results from the bookings.date_booked. Anyone have any ideas.

Link to comment
https://forums.phpfreaks.com/topic/263810-inner-join-where-clause-in-cakephp/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.