Gem Posted April 6, 2009 Share Posted April 6, 2009 Hiya I'm still stuck with getting my links to work ... at the moment they look like this: <a href='test1.php?currentpage=$id'>$title</a> (It used to be PHP_SELF but I thought it might work if I sent it to another page altogether) My question is ... How do I tell 'test1.php?currentpage=$id' what to display, or would this be better: <a href='$id.php'>$title</a> Although that still leaves me not knowing how to tell THAT page what to display ... am I making sense? Cheers Gem Link to comment https://forums.phpfreaks.com/topic/152792-solved-idphp-maybe-this-will-work/ Share on other sites More sharing options...
WolfRage Posted April 6, 2009 Share Posted April 6, 2009 We have no idea what your end goal is, so no you are not making a lot of sense. Link to comment https://forums.phpfreaks.com/topic/152792-solved-idphp-maybe-this-will-work/#findComment-802339 Share on other sites More sharing options...
Gem Posted April 6, 2009 Author Share Posted April 6, 2009 Sorry Basically: I have a table (id, title, subtitle, article) On test.php I have listed listed title, subtitle by id desc title is linked as shown above I now want to be able to open that link and see title,subtitle,article on a new page, same page ... any page?? Make sense now?? x Link to comment https://forums.phpfreaks.com/topic/152792-solved-idphp-maybe-this-will-work/#findComment-802349 Share on other sites More sharing options...
revraz Posted April 6, 2009 Share Posted April 6, 2009 I really don't know why you made a new subject for this when all the information was already in your other post. You set the ID just like you were setting the $currentpage variable. Link to comment https://forums.phpfreaks.com/topic/152792-solved-idphp-maybe-this-will-work/#findComment-802354 Share on other sites More sharing options...
Gem Posted April 6, 2009 Author Share Posted April 6, 2009 Sorry Rev - I just wanted to know if $id.php would work ..? I'm going back to my other subject now.. I'll mark this one as done =( Link to comment https://forums.phpfreaks.com/topic/152792-solved-idphp-maybe-this-will-work/#findComment-802371 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.