Avatar of MOSTAGHASSI
MOSTAGHASSI
Flag for United States of America

asked on 

How can i modify this custom function in php?

Hello;

I have this function and it works

<?php
        $tab  = "<div class='articletitle'>";
          $tab .= "<a href='./$folder/$file?articleid=$articleid&parentid=$parentid&catid=$catid'><strong>$title$audioicon 
		   </strong></a></div>";
          $tab .= "<div class='mimage'>";
          $tab .= "<a href='./$folder/$file?articleid=$articleid&parentid=$parentid&catid=$catid'>
		   <img src='./images/mimage/$photo' border='0' alt='$altdescription' /></a><br/>";	  
          $tab .= "<span class='span_class'>$description1...  </span></div><hr class='hr95'>";
          return $tab;
		  
          }
          $tab = "";
 ?>

Open in new window


But i want change it to have one <div> with 3 raws(one for Title,one for image,and one for title description) as below,appreciate that let me know is it possible and how?
Because when i want apply 'float' i can.

    <div class="wrapper">
  <div class="row1">for title</div>
  <div class="row2">for image</div>
  <div class="row3">for small description</div>
</div>

Open in new window

PHP

Avatar of undefined
Last Comment
MOSTAGHASSI

8/22/2022 - Mon