Sublime directory Surf the web anonymous Pagerank Monitor


Some Beginner PHP Help

altosaxplayer
Sun 9 December 2007, 05:46 pm GMT +0100
I have noticed on several PHP websites that they refer to other pages on their server by using the following:

games.php?game=29

I am a webmaster for a couple of very simple websites. I was just wondering how to do this as I was contemplating creating a FAQ section on one of my websites and wanted to use this function as it seems simple (probably isnt though right?). Anyway, just wondering if there is a tutorial that someone can link me to or what. I appreciate any help. Thanks!

olaf
Sun 9 December 2007, 06:47 pm GMT +0100
check this http://www.w3schools.com/php/php_get.asp

Nikolas
Sun 9 December 2007, 08:38 pm GMT +0100
In other words, inside games.php you can use the $_GET['game'] variable which will have the value 29. So the above code :

echo $_GET['game'];?>

will print 29 in the screen.

altosaxplayer
Sun 9 December 2007, 09:27 pm GMT +0100
Is there a way that I can use that to reference bringing up a page? I mean, how do I take a link and reference the PHP file and then find, lets say, a html page with some information on it? Or is there something I am completely missing here?

Mind_nl
Sun 9 December 2007, 10:32 pm GMT +0100
usually sites that use this method of displaying pages have the content stored in a database, so the php script will fetch entry number 29 from the database and build the page with that content.

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional