Good morning, I created a section in a php page as shown in the image.
The line marked with number 1 is generated by this code called today.php:
<?php
function myTab()
{
echo str_repeat(' ', 3);
}
function templateDay($start, $end)
{
$dayOfWeek = ['LUN', 'MAR', 'MER', 'GIO', 'VEN', 'SAB', 'DOM'];
$toDay = date('N') - 1;
for ($i = $start; $i < $end; $i++) {
echo $dayOfWeek[$toDay] === $dayOfWeek[$i] ? "<a style='color:red'>" . 'OGGI' . '</a>' . myTab() : "" . $dayOfWeek[$i] . '</a>' . myTab();
}
}
templateDay(3, 7);
templateDay(0, 3);
?>
while line 2 gives this other:
<div class="container section" id="afterHeader">
<div class="row">
<div class="tabs movies">
<a class="style1">1^ SETTIMANA</a>
<p><?php require "./oggi.php";?></p>
<ul>
<li><a href="#thu">GIO</a></li>
<li><a href="#fri">VEN</a></li>
<li><a href="#sat">SAB</a></li>
<li><a href="#sun">DOM</a></li>
<li><a href="#mon">LUN</a></li>
<li><a href="#tue">MAR</a></li>
<li><a href="#wed">MER</a></li>
</ul>
I would need to replace row "2" with row "1" Who can help me? Thank you all