php - How to use query strings -


i have php file json here , want use query string @ end of url find comment id 1 example. think should this:

http://wowsk.org/comments/comments.php?id=1

this not work though , don't know doing wrong. have never worked query strings can't understand right away solution is.

thanks help!

in comments.php file, should value in $_request['id'], , include value in sql query (if using sql database). don't forget sql injection, @ least use intval() on id fields.


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -