I am new to PHP and trying to learn some so sorry if this seems like too easy a question! anyway lets say I have 2 tables –
- ID & author
- ID, joke and AID (supposed to be Author ID)
I want to display each author and each joke they have written all on the same page
Author
- joke
- joke
- joke
Author
- joke
- joke
- joke
How would I go about doing this? I just can’t figure it out and I don’t know how to google it because I don’t know how to word it. If anyone could point me in the right direction that would be super. Thanks!
1. You query all the
jokes with their respectiveauthor2. Iterate over the results and output it