28, May 2012

Some Beginner PHP Help - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Some Beginner PHP Help
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: Some Beginner PHP Help  (Read 1305 times)
Google dot what?
*
Posts: 2
16 credits
Members referred : 0


« on: Dec 09, 2007, 05:46:43 pm »

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!
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Dec 09, 2007, 06:47:43 pm »


I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #2 on: Dec 09, 2007, 08:38:32 pm »

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.

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Google dot what?
*
Posts: 2
16 credits
Members referred : 0


« Reply #3 on: Dec 09, 2007, 09:27:48 pm »

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?
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #4 on: Dec 09, 2007, 10:32:04 pm »

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.


Last blog : Are You Stumbling Yet?
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7430
Tags : php help Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Some Beginner PHP Help
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 08:54:57 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.