Joining 3 three tables
问题 I have this diagram which should explain my situation I need some help on joining 3 tables which I have no idea how to do this kind of thing: So I can go through a while loop of retrieving the records by doing this: <img src="<?php echo $row['filename']; ?>" alt="" /> Album: <?php echo $row['album_name']; ?> AlbumID: <?php echo $row['album_id']; ?> 回答1: Using an INNER JOIN will prevent returning albums that don't have images. The ORDER BY ... DESC will sort the results in descending order but