I've tried this multiple ways, the latest below.
Maybe I'm on the wrong track.
Thank you.

<?php do { ?>
     <?php  $class='class="other"'; ?>
      
      <?php if($row_rsFrontPageAds['AdLink'])
	 
	  echo "<a href=\"" . $row_rsFrontPageAds['AdLink']"\"".$class."\">"; 
	  
	
	 ?>  
      
      
        <img style=" " 
              src="<?php echo $row_rsFrontPageAds['AdPath']; ?>"alt="" max-width="" border="" class="imgright1"/>
              
          
             
           
     <div align="justify" class="style48" >     
  <?php if($row_rsFrontPageAds['AdCaption']) ?>
	<?php   echo "" . $row_rsFrontPageAds['AdCaption'] . ""; 
	  	 ?> 
              
             <?php echo "</a>"; ?> </div>

Never mind. I was missing a "."

echo "<a href=\"" . $row_rsFrontPageAds['AdLink'] . "\"" .$class."\">";
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.