I'm trying to be clever and make pretty little index.php?action=blog links instead of the bog standard blog.php on my weblog site.
The code I'm using works fine for just the index page, but when anything is added in the ?action part, its included, but the index page is also included underneath, which is ammusing, but not really very usefull
This is the code I'm currently using:
if($action == blog) {
include_once 'blogs.php' ;
}
if($action == 0) {
include_once 'index2.php' ;
}
Can anyone offer a fix?
Thanks
ravingcommie 😕