Hi guys sorry for the bad english :) i have this code below that echo the some divs defined inside the array i want to include a php page (example below ) inside those divs :
<?php $items =array(
'<div id="o-31" class="col-sm-6 col-md-4 col-lg-3" > <div id="mydid" > </div></div>',
'<div id="o-36" class="col-sm-6 col-md-4 col-lg-3" ><div class="demo-content bg-alt" >.col-sm-8</div></div>',
'<div id="o-37" class="col-sm-6 col-md-4 col-lg-3" ><div class="demo-content bg-alt" >.col-sm-8</div></div>',
'<div id="o-38" class="col-sm-6 col-md-4 col-lg-3"><div id="mydid" > </div></div>'
);
?>
<?php
for($i = 0; $i <= 3; $i++){
echo $items[$i];
}
?>
i cant see how i can add a php code inside the div i tried :
'<div id="o-31" class="col-sm-6 col-md-4 col-lg-3" > <div id="mydid" >
<?php
$ccc= "ff";
$tablelink2=$_SESSION['hes_2'];
$tabletitle2=$_SESSION['hes_1'];
$tableimg2= $_SESSION['hes_3'];
include('hes_2.php');
?>
</div></div>',
and
'<div id="o-31" class="col-sm-6 col-md-4 col-lg-3" > <div id="mydid" >'
<?php
$ccc= "ff";
$tablelink2=$_SESSION['hes_2'];
$tabletitle2=$_SESSION['hes_1'];
$tableimg2= $_SESSION['hes_3'];
include('hes_2.php');
?>
'</div></div>',
also not working :( ?