Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends
i have been on this issue for a very long time now, i have a table in mysql database which is called the user_profile, and i have a web page called profile page from which users can put personal info and save to the database. That is to say each user has his own account. My problem now is accessing users profile page using url,
for example: www.mydomain.com/username.
a very clear example is the operation of the Facebook page system, where i can access my page by just typing
"www.facebook.com/mypagename".
is there something i need to understand, please i need your assistance.
Thanks.
Posted

1 solution

One solution for this question is to use parameter, you need to include parameter in the url for example, www.mydomain.com/page.php?username=usernamevalue, in page.php you should get the parameter which in this case is username and you can use it to query data..if you don't want the parameter to be showed in the url you can use ajax to perform this action
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900