Im new to php. Im trying to display data via url. (example) www.mySite.com/usercomment?user_id=1. I would like to let users retreive data by having to type in specific url. Not pageing through data. Any comments, suggestions would be appreciated
phpDave
0
Junior Poster
Recommended Answers
Jump to PostYou can get PHP parameters (the things after the ?), by using $_GET. In your case you'd go:
$variable = $_GET["user_id"];
Unless I got your question wrong and you're asking something else?
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.