Im trying to echo the content of the foreach loop inside div tag but I get an error message. I know my making a mistake in concatenating html and php but Im not sure where I'm making the mistake. Can some one point me in the right direction?
<php
for($i=0; $i<$daysInTheMonth; $i++){
if($i==$firstDayOfMonth)
$BeginMonth= true;
if($BeginMonth){
$CounterForDays++;
echo "<div class=dateContainner> ".$CounterForDays <br/> ;
foreach ($_POST['mondayTime'] as $Times ){
echo "$Times <br>" ;
}
."</div>";
}
else
echo "<div class=dateContainner> </div>";
}
?>