I have at top of page:
if (isset($_GET['id']))
{
$id = $_GET['id'];
}
else
{
$id = 'normal';
}
$getQuery = "SELECT styleName FROM mmstyles WHERE styleID = '$id'";
I have also an entry within .htaccess as:
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^([^/]+)\/index.php styles/index.php?id=$1 [NC]
Now my query does not work as it looks for 'styles' instead of 'normal'. I have use this sort of coding before, only that then I had all in root folder. Now, it has to go in separate folder and as this is the differentiating factor I wonder if the folder name requires a change in .htaccss that I am not aware of. Can you see where I am going wrong?
Thanks,
Son