how to generate links in php?

codding

New Member
This is a very basic question but I couldn't seem to find anything on Google, hm.Anyway, I'm not referring to creating links, i'm talking of generating links like site.com/1 or http://stackoverflow.com/questions/3870639/how-to-generate-links-in-php, the numbers after the url are stored in the database with a corresponding post for example. How do I generate these using php?If i visit h**p://site.com/questions/3870639/how-to-generate-links-in-php how do I tell the server to query the database and retrieve the corresponding post of 3870639? (without htaccess)Thanks.
 
Back
Top