Page 1 of 1

Linking Files In PHP

Posted: Thu Jun 11, 2009 2:35 pm
by dj1mitch
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:

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 />');
          
          
          }
        }
 
    }
Is there away to code php to link from the Artist Page to that particular Artist Past Exhibition.

Re: Linking Files In PHP

Posted: Fri Jun 12, 2009 11:11 am
by Popcorn
your question isn't so clear to me coz i'd say it looks like you are doing that on line 12... :S