Hey guys,
Lets see if i can explain myself clearly.
I have three tables in a mySQL database I need to pull into a a php page.
Tables are :
courses, coursedates, and coursesections.
coursesections only lists the sections of courses that are available
for example section 1 could be Microsoft Word.
the courses database has a section id that relates to the section id in coursesections
same with the coursedates.
Hope you all are still with me.
Now I just need to display in a table all the data. I know i need to have two loop statements, and maybe two SQL statements at least, but I want to display the information like this in an html table.
Section Name
courses | date1 | date2
courses | date1 | date2
...
Section Name #2
courses | date1 | date2
courses | date1 | date2
...
so I need to have one loop that loops through the sections, then a second loop that loops through the courses and dates that are with that Section and displays it under each section.
There are only 4 dates for every course, so there doesnt have to be a loop for the dates, just a loop to display the right dates with the right course
Hope that is all clear as crystal. If not let me know what you dont understand.
Any help with this would be greatly appreciated.
Thanks,
dduck1934 😃