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? Quote Link to comment 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. Quote Link to comment 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!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.