mercredi 26 février 2020

How can I set numbers that equals days of month [duplicate]

First of all, I'm sorry if im explaining it too bad, but I'm at least trying...

I have a table with checkboxes, https://i.stack.imgur.com/K0xPv.png code is like that:

<td>
<?php 
    $date = date('Y-m-d');
    $k = $date;
    for($k=8; $k<=31; $k++){
?>
</td>
<td>
<?php 
        for($k=1; $k<=31; $k++){
?>
<td>

How can I get change these numbers to calendar numbers, because I want it to begin not with 1, but with the day that is today.

I hope i did ask a question right, if not, please, feel free to comment for more details




Aucun commentaire:

Enregistrer un commentaire