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?