I'm trying to make my website so that when you click on a link it changes the dynamic include to the specific page. It's hard to explain so I'll just show you.
The website I'm making is for a tattoo studio, if you go to http://www.btseagrave.co.uk/ink/index.php?p=artists, you can see the two image links for "Bianca Seagrave" & "Bryan Baford". Currently because of the index.php?p=artists, the index is including the artists.inc.php page, but when they click on either bianca or bryan, the url changes to index.php?p=artists&artist=bianca(or bryan) I want it to include bianca.inc.php or bryan.inc.php. I've tried doing something like this:
if(isset($_GET['artist']) {
$artist = $_GET['artist'];
if($artist = "bianca") {
include(bianca.inc.php);
} elseif($artist = "bryan") {
include(bryan.inc.php);
}
} else {
echo "DEFAULT ARTISTS PAGE CONTENT HERE";
}
But it didn't work, anyone know where I've gone wrong?