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

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

javascript - Can Piwik report referrer in real time? -