How to display database content using custom URL routing with CodeIgniter
12:32 21 Mar 2017

I have a table 'products'. The columns are 'id' and 'product_name' etc. Now how can I set the URL like this with codeigniter?

localhost/product/details/apple-iphone-7-50064584

Now here, product name is Apple Iphone 7 and id is 50064584. How can I combine them and show the result dynamically?

php sql codeigniter model-view-controller url-routing