If you join tables with a one-to-many relationship, then you are going to get duplicated results from the user table. So there is no way to get only one result per user? Sorry about not making sense. I'm not sure how to put it or exactly what information you will need, but let me give it a shot: I have two tables- 1.Details and 2.images The details table is self-explanatory. A user can log in and upload images to his gallery with the filename/path stored in the database - in the images table. The images table has 3 columns, picID, userID and filepath. The user ID is the ID of the user that uploaded the images so all the images with his user ID is all the images he uploaded and I want to display all those images accordingly with each user's ID. When a client does a search, I get more than one result per user at this time, because there is more than one image per user. What I want to do, is to create a recordset where all the fields are present, including image data, but without displaying every record twice because there is more than one image linked to that user. I don't want any one specific image, I want all the images available for that user. I have created a recordset joining the 2 tables like this. eg: SELECT details.id, details.name, images.`path` FROM details, images WHERE images.usrID = details.id; Something like that. SELECT DISTINCT won't work obviously since every row is different because of the image path. Hope this makes better sense. Please let me know if there is something specific you need. If there is a better way to do this that you know of, please let me know.
... View more