In a nutshell. I have a php variable called $photo and it is initially assigned the value of "intro". Further down the variable is called under the id=photo_. I then unset the variable right after. Then I reset the variable at the bottom of the page withing a do-while loop, so each div assigns the variable a specific value depending on the css image I want to display. I have an onclick event to an external javascript that changes which div is displayed based on id number and I want the value that I assigned to the variable $photo within that div to replace the value at the top of the page. I am at my wits end, I have literally spent a week messing with this.


<?php $photo = "intro"; ?>



<div id="wrapper">
  <?php include("_includes/header.php"); ?>
  <?php include("_includes/menu.php"); ?>
  <div id="bioContentArea">
    <div id="roundedTop"> <img src="images/contentHeader.gif" /> </div>
    <div id="Photo_<?php echo $photo; ?>">&nbsp;</div>
	  <?php unset($photo); ?>
    <div class="paperclip"><img src="images/paperClip.gif" /></div>
     <div id="staffDirectory">
     <?php do { ?>
       <li><a href="#" onclick="switchUp('ABH_<?php echo $row_rsDirectory['bioId']; ?>', previousPage);"><?php echo $row_rsDirectory['bioLastName']; ?>, <?php echo $row_rsDirectory['bioFirstName']; ?></a>[<?php echo $row_rsDirectory['bioTitle']; ?>]<br /><br /></li>
      <?php } while ($row_rsDirectory = mysql_fetch_assoc($rsDirectory)); ?>
    You must enable Javascript to view!
    <!-- end of serviceHomepage box -->
    <div id="intro">
    <h1>Our Employees</h1>
    <p>Bow wow wow shizzle my nizzle crocodizzle dolor sizzle amizzle, ass pot elizzle. Nullizzle **** velizzle, shut the shizzle up shiz, gangsta quis, shizzlin dizzle brizzle, i saw beyonces tizzles and my pizzle went crizzle. Pellentesque stuff tortor. Sizzle erizzle. I saw beyonces tizzles and my pizzle went crizzle boom shackalack dolor that's the shizzle turpis tempizzle tempor. Maurizzle pellentesque gangsta dang turpizzle. The bizzle in tortor. Pellentesque fizzle brizzle. In hac yippiyo platea ass. Yo mamma dapibizzle. My shizz tellizzle fo shizzle, gangster eu, da bomb ac, dang vitae, nunc. We gonna chung suscipizzle. Fizzle the bizzle velizzle funky fresh.</p>
In black leo crazy nisi. Pellentesque shizzlin dizzle, arcu non for sure facilisizzle, sizzle nulla crackalackin sem, i saw beyonces tizzles and my pizzle went crizzle auctizzle nulla felizzle a est. Suspendisse volutpizzle fo shizzle shiz. Its fo rizzle egestizzle lectus ut libero. Proin consectetuer izzle sapien. Etizzle aliquizzle, diam sit yo accumsan tincidunt, dope sizzle fo shizzle funky fresh, izzle vestibulum nizzle nisi shiz amizzle purizzle. Maecenas gangsta tortizzle ass enizzle. Bizzle lobortis. Nulla lectus lacus, fizzle shiznit, aliquizzle dizzle amizzle, brizzle fo shizzle, shizznit. Vivamizzle things. Yippiyo ante ipsizzle primis izzle you son of a bizzle orci luctizzle et ultrices posuere fizzle I saw beyonces tizzles and my pizzle went crizzle; In eu elit eu mofo bibendizzle condimentum. Fusce uhuh ... yih! tortizzle, stuff vizzle, semper vel, break yo neck, yall izzle, dope. Etizzle tellivizzle, tortor dope dang ass, justo ultricizzle lorizzle, izzle owned mi urna vitae erat.</p>
Nunc tellizzle lorizzle, pulvinizzle ac, you son of a bizzle eget, sheezy izzle, for sure. Pizzle sizzle leo a sizzle go to hizzle mattis. Mammasay mammasa mamma oo sa interdizzle dang izzle rizzle commodo its fo rizzle. Etizzle gizzle black yo. Morbi sure. Maecenizzle quis metizzle izzle dolizzle iaculis auctizzle. Integer sagittizzle i'm in the shizzle fizzle. Curabitur sollicitudizzle daahng dawg quizzle purus. Morbi mammasay mammasa mamma oo sa yippiyo shiz amet tellus. Nam my shizz enizzle gizzle arcu. Cum socizzle natoque penatibus izzle magnis get down get down parturient montizzle, nascetizzle black mizzle.

   <?php do { ?>
   <div id="ABH_<?php echo $row_rsBioStuff['bioId'];?>">
   <h1><?php echo $row_rsBioStuff['bioFirstName']; ?> <?php echo $row_rsBioStuff['bioLastName']; ?> [<?php echo $row_rsBioStuff['bioTitle'];?>]</h1>
   <p> <?php echo $row_rsBioStuff['bioDescription'];?></p>
   <?php $photo=$row_rsBioStuff['bioId']; ?>
   <?php echo $photo; ?>
  <?php } while ($row_rsBioStuff = mysql_fetch_assoc($rsBioStuff)); ?>