Linking Files In PHP
Posted: Thu Jun 11, 2009 2:35 pm
I have a list of Past Exhibits on an Art site. I want to link to the Past Exihibits using PHP from individual artist pages.
Right now I am able to generate the text dynamically on each artist page with the following code:
Is there away to code php to link from the Artist Page to that particular Artist Past Exhibition.
Right now I am able to generate the text dynamically on each artist page with the following code:
Code: Select all
if(!empty ($exhibit)){
print ('<br /><div class="submenu1">exhibit</div><!-- end submenu1 -->');
foreach($exhibit as $exhibitkey => $exhibitname) {
$exhibitname = substr_replace($exhibitname, '', -4);
$exhibitkey =(($exhibitkey)+1);
if ($_GET['exhibit'] == $exhibitkey) {
print ('<div class="submenu2">'.$exhibitname.'</div><!-- end submenu 2 -->');
} else {
print ('<a href="artists.php?artist='.$artistfolder.'&exhibit='.$exhibitkey.'">'.$exhibitname.'</a><br />');
}
}
}