how to use username in url
where mydomain.com/profile.php?id=12345
this was users profile page ,and then with get method ,i fetch user data from database as below code
$userid=$_GET['id'];
$qry="select * from `users` where userid ='$userid'";
echo $qry;
$result=mysql_query($qry);
$userinfo = mysql_fetch_array($result);
$u_name=$userinfo['name'];
$u_userid=$userinfo['userid'];
$u_gender=$userinfo['gender'];
but i want my url like this mydomain.com/username
without .php or anything can any one help me to fix this
get method doesn't work here any other option?
My free PSD logs can be downloaded at PSD Bum. Enjoy!
Ask the Internet Marketing Geek <-- Happy to help with technical challenges
MiniSiteMaker.org <-- Free software to make your mini-sites fast and easy
Bored. Learn everything you need to know about Organic Gardening.