Retrieve database article with slug string
Hey guys! I have a little problem with link rewriting.
For example, when I go to the page /articles/that-article-is-nice, I got the server to use /view.php?article_name=that-article-is-nice. My question is, how can I use that slug name(which was transformed previously) to get the wanted article from the database?
Because in the database I would have something like 'That article is nice.', whereas my article_name variable is different: 'that-article-is-nice'.
Can you give me any ideas on how I should approach this?