Nikolas.A Posted July 26, 2007 Share Posted July 26, 2007 I m kind of new with php, and looked in a lot of tutorials in phpfreaks but couldn't find an answer to my question(or didn't look at the right place). So I have a page, whose content depends on the link i click previously. Different link, different content(its a recipe site, so I want to have a list with the recipes and when I click on a recipes link, get the info for that recipe). What should I do so that when the display recipe page opens, php knows which recipe I clicked on the previous page? Link to comment https://forums.phpfreaks.com/topic/61801-solved-noobish-question/ Share on other sites More sharing options...
redarrow Posted July 26, 2007 Share Posted July 26, 2007 Each recepe needs a id and the id needs to be in a link pointing to a new page to get that recepe via the id in the link and query the database ok. use $_GET[''] to get the id on the new page and select the recepe from the database with that id. Link to comment https://forums.phpfreaks.com/topic/61801-solved-noobish-question/#findComment-307739 Share on other sites More sharing options...
Nikolas.A Posted July 27, 2007 Author Share Posted July 27, 2007 Thanx! GET & the variable worked fine!!! Link to comment https://forums.phpfreaks.com/topic/61801-solved-noobish-question/#findComment-308626 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.