myonosken
10-26-2006, 02:32 PM
Hey all, thanks for looking.
Anyway, I'm using a GET function (id=X) in my page, and I was wondering how I could use this value (stored in $id) in SQL? For example:
$sql = "SELECT * FROM `forum1thread` WHERE `forumid`='58' ORDER BY `dateline` DESC";
The forum id bit, I would like to be equal to the appended section of the URL.
I am also quite interested in finding out how if it is possible to use this same variable in an URL. Eg: www.zzz.com/"$id".jpg
Edit: Whoops. Where are my manners. Thanks for helping.
Anyway, I'm using a GET function (id=X) in my page, and I was wondering how I could use this value (stored in $id) in SQL? For example:
$sql = "SELECT * FROM `forum1thread` WHERE `forumid`='58' ORDER BY `dateline` DESC";
The forum id bit, I would like to be equal to the appended section of the URL.
I am also quite interested in finding out how if it is possible to use this same variable in an URL. Eg: www.zzz.com/"$id".jpg
Edit: Whoops. Where are my manners. Thanks for helping.