Hey all
I am using MySQL and the 'like' query in order to find pages. I need to be able to do things this way, but this means that these pages will be the same:
www.mysite.com/blog/hello-world
www.mysite.com/blog/hello-worl
They both work, and bring up the same page. How (possibly using .htaccess?) can I get around this problem? :\
Many thanks
EDIT:
PHP -
if(isset($_GET['title'])) {
$blogtitle=mysql_real_escape_string($_GET['title']);
$title_two = strtolower(str_replace("-", " ", $blogtitle));
$title_two = strtolower(str_replace("?", "", $title_two));
$title_two = mysql_real_escape_string($title_two);
$postmatch = "select * from blog where title LIKE '%".$title_two."%' LIMIT 1;";
$postquery = mysql_query($postmatch) or die ("Could not match data because ".mysql_error());
$blogtitle=mysql_result($postquery,0,"title");
$title="$blogtitle";