Just use $id in your code. That should do the job.
Variables that are passed using GET or POST you can just use in your
code. Ofcourse you have to add the $-sign. So if you use the URI:
http://www.arandomsite.com/news_story.php?id=123
You can just use:
"SELECT xxx FROM yyy WHERE id=$id"
RenzE.
'ello,
Is it Possible, in PHP to read a URL?
What I am trying to do is this...
I have many news stories in a database, and a single static news page, that
calls the story, and the corresponding headline.
I have looked about on-line, and seen a common URL,...
http://www.arandomsite.com/news_st
2 matches
Mail list logo