This isn't a huge issue, I'm just picky. I'm trying to set up my site with search-engine friendly URLs. For example, it would change my dynamic links to something like "http://www.mysite.com/title-returns-here.html". I've got it right now so that a url such as "mysite.com/page.php?id=1" will come up with the URL "mysite.com/page/1-title-of-article-one". What I've tried doing is creating a new row in my database called "seotitle" and using it to store search-friendly versions of the article titles. I've tried to call it using this query:
$query = "SELECT * FROM news WHERE seotitle=".$_GET['title'];
If I try going to something like "mysite.com/page.php?title=name-of-article" it gives me an error such as this: Error : Unknown column 'name' in 'where clause'.
If I go to "mysite.com/page.php?title='name-of-article'", it works.
My question is, how can I get it to work so that I don't have to use the single quotes around the title in the URL? If I try to run it using my mod_rewrite, it only works as "mysite.com/page/'name-of-article.html'"