I want to fetch data from the database and assign it to a web address base on it id. For example if I fetch 5 data from database I want to assign those data to a web address without using Get method.
Just like this www.example.com/datafromdatabase instead of this www.example.com?id=datafromdatabase. I have seen many forum site using the "/" but I only know the get "?" method.
You're looking for rewrites in this situation, for Apache you will want to use rewrite rules:
For nginx you also want to use try_files:
Both of these will convert the
/directorytoindex.php?id=directoryif the file doesn't exist which will allow images and such to still be served as normal and only rewrite things which aren't files or directories.