I will try and set the scene as best i can. *lights candle
What i am trying to acheive is this
- Search
image_likesto see if the user has liked any images and then include them in next query. - Grab all images from
imagesthat user has uploaded. - Show both results aswell as ORDER BY
idDESC.
I am horrible at MySQL when it comes to including different table results, so i hope i have included enough information. Let me know if you need anymore.
Table Structures
image_likes
id | user_id | image_id
images
id | uploader_id | date
1:
2:
3: (all together)
Replace x with the User’s ID