Hi all,
I have basically a simple one page display of some information. It is an event chart. some of these events span multiple days so they have a start and end date and some are only one day so basically have just a start date. The issue is that all the information needed to display is in three different mysql tables. (has to stay this way as im displaying information from another program that uses these)
The events table has the start date, description and some other info. (each event has an id number)
The repeating table is used for events that span more than one day and have the second date I mentioned. (also associated with the same event id)
The last table has some other description info that has to show as well. (also has an associated event id)
I can get things to show fine if I am doing just two tables, but the issue comes up when I want the third tables info to show as well.
I can do something like:
$query = "SELECT DATE_FORMAT(webcal_entry.cal_date, '%d %M %Y'),webcal_entry.cal_create_by,webcal_site_extras.cal_data,webcal_entry.cal_description FROM webcal_entry,webcal_site_extras WHERE webcal_entry.cal_id = webcal_site_extras.cal_id ORDER BY webcal_entry.cal_date DESC";
And this displays info from the events table and the extra description info table just fine. If I use an AND command to append the third table's webcal_entry_repeats.cal_id = webcal_entry.cal_id then it only displays the items that are in just the repeats table and not the others. If I use an OR command it shows tons of junk. I am a bit lost what I need to do to get the third table's info to show with just the ones that have the end date. Any help is appreciated. Thanks!