Re: Tricky MySQL / php Script
| From: | Peter Ellis | Date: | Thu, 19 Aug 2004 02:16:19 +0000 |
| Subject: | Re: Tricky MySQL / php Script | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-35795@lists.php.net to get a copy of this message | ||
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?
>