mathewjenkinson Posted April 25, 2009 Share Posted April 25, 2009 Is there a way I can request information from a DB to fill a page without using something like: http://www.domain.com/index.php?id=23 so its just http://www.domain.com/index.php but still gets the information from the db? Quote Link to comment https://forums.phpfreaks.com/topic/155629-another-way-to-populate-without-using-url-id/ Share on other sites More sharing options...
premiso Posted April 25, 2009 Share Posted April 25, 2009 Not unless you use a form to POST the ID. What is the reasoning for changing this? Quote Link to comment https://forums.phpfreaks.com/topic/155629-another-way-to-populate-without-using-url-id/#findComment-819128 Share on other sites More sharing options...
mathewjenkinson Posted April 25, 2009 Author Share Posted April 25, 2009 the guy im designing the website for has requested it. apparently index.php?id=100 is 'yucky' - I dont see it personally but gotta do what the customer asks for. Quote Link to comment https://forums.phpfreaks.com/topic/155629-another-way-to-populate-without-using-url-id/#findComment-819193 Share on other sites More sharing options...
Mchl Posted April 25, 2009 Share Posted April 25, 2009 Maybe you're after mod_rewrite? Quote Link to comment https://forums.phpfreaks.com/topic/155629-another-way-to-populate-without-using-url-id/#findComment-819194 Share on other sites More sharing options...
premiso Posted April 25, 2009 Share Posted April 25, 2009 That is what I figured. He wants SEO Friendly urls. Simple Mod rewrite Tutorial Read through that, as that is what you need to do. Quote Link to comment https://forums.phpfreaks.com/topic/155629-another-way-to-populate-without-using-url-id/#findComment-819196 Share on other sites More sharing options...
mathewjenkinson Posted April 25, 2009 Author Share Posted April 25, 2009 prehaps, that could work too. at the moment, its set up that: index.php?id=100 loads the data on education where as if i could do education.php that would be a lot better Quote Link to comment https://forums.phpfreaks.com/topic/155629-another-way-to-populate-without-using-url-id/#findComment-819198 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.