Jump to content

2 Tables


phrozenfire

Recommended Posts

Hi, I think there's probably an easy way to do this, but its got me a little confused.

I would like to Run a query, which selects two tables, Callbacks and TicketsSold.

Then I'd like to display the contents of Callbacks, where the cartID = cartID in TicketsSold, and where MC_EventDate equals either:
Saturday 9th December
Sunday 10th December
Saturday 16th December
Sunday 17th December
Saturday 23rd December.

I will have 5 seperate pages, so I can hard code the date into the query, but am struggling on how to put the query togther to get the necessary results. Do I need to run seperate queries on the tables then merge them somehow?

I have PHP version    4.4.2 and MySQL version    4.1.21-standard if that makes a difference

Many thanks for any pointers.
Link to comment
https://forums.phpfreaks.com/topic/35400-2-tables/
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.