Ach, and the light bulb goes on. Sorry, wasn't really thinking about it completely earlier. Here's a less dimbrained suggestion: could you encode the user ID as part of the filename itself? Like, for instance, write the script so that it would read something like: blah.jpg.215 and strip off the .215, converting it into a user ID and stripping it from the file name before displaying the file? Hopefully, that's much closer to an actual coherent suggestion :) - P On Wed, 2004-08-18 at 21:23 -0400, Vern wrote: > That's not what I mean at all. I actually have no idea where you got that > from. :) > > Basically what I'm trying to say is this. The following is my url: > > mypage.php?photoID=uploads/1052367746.jpg&userID=215 > > photoID = uploads/1052367746.jpg > userID = 215 > > I want to point to a record in a recordset. > That records id is "uploads/1052367746.jpg" > However, I want to return all records for the userID "215". > > How do I point my recordset at that file in the recordset so that the user > can go to the next and previous records in that recordset based on the > user's id? > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php