I need some help getting my blog's archives to work.
To see them right now, go to kafene.org/index.php?url=blog
The index of the blog works, but I can't get the archives to parse into the index page.
What I need to do is something like
if ($url=="*archive*") {
include "*archivename*.php"; }
If anyone needs specific code, feel free to ask.
the code I use to include each page in the index is:
Code: Select all
<?php
if ($url == copyright){
include "lic.php"; }
elseif ($url == atkafene) {
include "atkaf.php"; }
elseif ($url == contact) {
include "contact.php"; }
elseif ($url=="propaganda") {
include "prop.php"; }
elseif ($url=="todo") {
include "todo.php"; }
elseif ($url=="blog") {
include "blog.php"; }
elseif ($url=="main") {
include "main.php"; }
elseif ($url=="") {
include "main.php"; }
else {
echo "That is not a valid location!"; }
?>I hope someone can help! Thanks.