Jump to content

Unspoiled

New Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Unspoiled

  1. I just changed the names to page.php, in my real code it's different This solved it, used the elseif
  2. Hi guys, i'm making a system with linking like this: <?php $link=$_GET['page']; if ($link == '1'){ include ('page.php'); } if ($link == '1-1'){ include ('page.php'); } if ($link == '1-2'){ include ('page.php'); } if ($link == '1-3'){ include ('page.php'); } if ($link == '3'){ include ('page.php'); } if ($link == '4'){ include ('page.php'); } if ($link == '5'){ include ('page.php'); } if ($link == '6'){ include ('page.php'); } else{ include_once ('pages/home.php'); } ?> And at the end I have the else{ include_once ('pages/home.php'); } But I want to have the else statement for all the if statements, someone has a solution?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.