One Bad Omen Posted October 20, 2006 Share Posted October 20, 2006 Ok, so i have a table that has a primary key that also serves as an auto_increment, so every user has their own unique #. Well how would I get that # in the url? like lets say www.mysite.com/user=# and then it would take you to that users page? Link to comment Share on other sites More sharing options...
jhecht Posted October 20, 2006 Share Posted October 20, 2006 put it in the url the right way would help.http://mysite.com/page.php?user=#;in PHP use this $_GET['user']; Notice that the stuff inside the [ and ] is the same thing as after the ? in the base url. Link to comment Share on other sites More sharing options...
boen_robot Posted October 20, 2006 Share Posted October 20, 2006 A small note on this... If your PHP page is also the index page, it's not requred to write the full filename of the PHP file. You might as well use the URLwww.mysite.com/?user=# Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now