Jump to content

[SOLVED] Is it possible to put 2 SQL variables inside a $_GET variable?


Goldeneye

Recommended Posts

I have a "view single message" link on each forum post.

 

But instead of referring to it like http://foo.bar/forums.php?board=1&topic=1&message=2 where the $_GET['message'] variable is a `messageid` field inside the database;

 

I would like to combine 2 database variables to create a fake message ID like http://foo.bar/forums.php?board=1&topic=1&message=12097672641 where the $_GET['message'] contains a time variable and a userid variable (in this case, the userid is 1) which is the last digit.

 

Is this possible at all? Because I tried a few ways, and it just wouldn't comply.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.