8, January 2009

Some Beginner PHP Help - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ 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

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


« on: Dec 09, 2007, 06: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: 6557
40174 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Dec 09, 2007, 07:47:43 PM »



Last blog : Just a better Internet portal provided by Google
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8357
43129 credits
Members referred : 3



« Reply #2 on: Dec 09, 2007, 09: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 Visit through proxy or twitter Visit through proxy

Last blog : Monetizing Old Posts
Google dot what?
*
Posts: 2
16 credits
Members referred : 0


« Reply #3 on: Dec 09, 2007, 10: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, 11: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....

Topic sponsors:
Get a permanent link here for $1.99!


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?
Jan 08, 2009, 10:12:08 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!


Forum Statistics
Total Posts: 38.657
Total Topics: 7.772
Total Members: 4.659
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: sardiniasarena

32 Guests, 4 Users online :

17 users online today:



Readers

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