Skip to content

Instantly share code, notes, and snippets.

@facumartig
Last active December 19, 2015 19:19
Show Gist options
  • Save facumartig/6005274 to your computer and use it in GitHub Desktop.
Save facumartig/6005274 to your computer and use it in GitHub Desktop.
<?php include './functions.php'; ?>
<tr>
<?php
for ($i = 1; $i <= 7; $i++){
if ($i < $primer_dia){
echo "<td><span></span></td>";
}
else {
echo "<td>".$diap."</td>";
$diap++;
}
}
echo "</tr><tr>";
for ($i = 1; $i <= $days_number; $i++) {
echo "<td>".$diap."</td>";
if ($i % 7 == 0) echo "</tr><tr>";
if ($diap == $days_number) break;
$diap++;
}
?>
</tr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment