kiran123 Posted March 24, 2012 Share Posted March 24, 2012 hiii all, i want to show the database field (alise name) as the url after index.php when page or site loads first time. how i can achieve it? please help.... thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/259611-want-to-show-the-database-field-in-the-url-when-page-or-site-load-1st-time/ Share on other sites More sharing options...
AyKay47 Posted March 24, 2012 Share Posted March 24, 2012 Depends how the user is getting to index.php, do they need to login? More info is needed, and some code would help. Quote Link to comment https://forums.phpfreaks.com/topic/259611-want-to-show-the-database-field-in-the-url-when-page-or-site-load-1st-time/#findComment-1330732 Share on other sites More sharing options...
kiran123 Posted March 26, 2012 Author Share Posted March 26, 2012 I have some Products in my database. and i am showing the latest product added to the database on index.php when site or page loads. user not need to sign in. then how can i show the alias name in the url? Thank you..... Quote Link to comment https://forums.phpfreaks.com/topic/259611-want-to-show-the-database-field-in-the-url-when-page-or-site-load-1st-time/#findComment-1331110 Share on other sites More sharing options...
AyKay47 Posted March 26, 2012 Share Posted March 26, 2012 You would have to pass the product name to JavaScript and set location.hash to the value onLoad Quote Link to comment https://forums.phpfreaks.com/topic/259611-want-to-show-the-database-field-in-the-url-when-page-or-site-load-1st-time/#findComment-1331179 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.