Solved

Can anyone help with the ?page= syntak

Posted on 2006-07-23
3
187 Views
Last Modified: 2013-12-25
hi,

trying to make a website that for the general part will host links and what not to interesting websites, now i plan to add a new page or two every 3 or 4 days, but to avoid changing the html code in every page i was wondering if i can put in one bit of code that will just KNOW which pages are 1, 4, 92, etc...

i have seen the "?page=" code and was wondering....

A) could this work for me
B) how to use it

If not does anyone know of  a system that will do this with the minimal need for code changing, renaming etc...
 
Any help would be great
0
Comment
Question by:martman2002uk
  • 2
3 Comments
 
LVL 33

Accepted Solution

by:
humeniuk earned 65 total points
ID: 17323660
Typically, when you see that sort of syntax - "?something=this" at the end of a URL, it means that it is a dynamic website, ie. the pages are generated using content from a database.

So, you may have one html page, ie. www.domain.com/page.php (PHP because you will need to use a scripting language like PHP or ASP to access the database).  When that page is called, the syntax on the end tells the web server which record from the database the content should come from.  So, www.domain.com/page.php?page=3 and www.domain.com/page.php?page=10 are the same html page, but they are populated with different content from the database.  The more database records you have, the more pages you appear to have, but ultimately, the are really all the same html page.
0
 

Author Comment

by:martman2002uk
ID: 17336942
have you got a link where i can learn about this in a bit more detail.

and thanks once again
0
 
LVL 33

Expert Comment

by:humeniuk
ID: 17337031
Here's a very basic overview I found with a quick search on Google - www.inetwebinc.com/architecture.php3?id_in=0817IN668873.  If I find something better later on, I will post it here.  Take a look & if you have any follow up questions, please feel free to ask.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question