Hi Everyone, Before I ask my question I would like to give everyone a background on myself. I'm currently in the learning stages of PHP and MySql. (I apol. in advance for my lack of tech. terminology) I have a question regarding how to "make" or "produce" certain pages in php code. In my past I've always manually made a pages. For example, aboutus.html, information.html, cats.html etc ... I think you get the idea. Assuming code is being used. How would one go about "making" or "producing" pages that are fully functional php pages? Where people can log in, make edits, write reviews etc ... (a few examples are below) Do the owners/programmers of the below websites manually "make" or "produce" these pages? http://cars.oodle.com/used-cars/san-jose-ca-area/ http://www.yelp.com/biz/lotus-of-siam-las-vegas http://restaurants.uptake.com/california/san_jose/509917137.html http://www.yelp.com/c/san-jose/restaurants My question is, how can I "make" or "produce" these types of pages for my website? Can anyone offer my any tips/tricks on how to do so. All opinions welcome. Thanks everyone in advance for the help.
You can generate pages by creating say cars.php and pulling information from databases, other websites etc so that in effect you could view the page at www.yourwebsite.com/cars.php?query=123 however most people use mod_rewrite to change it to www.yourwebsite.com/cars/123/
Thanks PK-Host! Now I'm trying to figure out how to actually extract that data and display it on my website!
Hi Hostplanz, My mistake for the delayed response. When I say extract data I mean extracting data from a mysql database and then using those keywords/phrases in my URLS. Thanks!
There are plenty of good tutorials on the web for getting data from MySQL and displaying in a php page. The manual at php.net is an invaluable resource and something to keep bookmarked for those little problems we all have from time to time. Stick with it and you'll soon be building powerful database driven sites Also a good book on php / mysql will come in handy, and can often be picked up used on amazon, etc for cheap!