I want to retrieve data from mysql database such that when the link is clicked, all the articles, related to particular categories are displayed on the page. That's right, I want to categorize my articles. So my question is that how do I use SQL queries in <a href> tags. (Of course we are going to need php). So can we use sql queries wrapped within php coding? Any suggestions?
Actually I have no code but I would try to explain what I want. Say for eg following the SQL query: SELECT post_title, post_body FROM table_name WHERE categories=xxx I want to wrap this query in php function and then anchor this php function in <a href> tag like: <a href="php function()>Anchor Text</a> Is this going to work? If not then what would be the most nearest possible simple alternate which generates the same result???