I have tried to do this several ways, none of which returned anything close to the expected results.
Here's what I want to do:
In my website, I have a number of articles that need to be displayed. Instead of having them all as separate HTML pages, I want a single PHP script that can display them all using query strings. For instance, to access Article 1 you would go to
http://www.mysite.com/articles/php?article_id=1
and to access other article I would go to the respective pages. What is the proper way to do this, if there is one?
Perhaps my understanding of query strings is faulty (which would be the fault of my newbie book and myself, for buying the newbie book). It seems to me that by going to
http://www.mysite.com/articles/php?article_id=1
the value of the variable article_id is changed to 1.
I am very confused. Please help me.