-1
I have a register of events where the user clicks on the desired day and a message appears if he wants to repeat this event for the other days of the week. For example: if he click on the day 11/10/2018 (Thursday), I would like to select this option, the registration is repeated on the days 18/10/2018 and 25/10/2018 which are also Thursday.
I understand that taking the day of the numerical week, I have to do it this way:
$diaSelecionado = $_POST["DiaSelecionado"]; // 11/10/2018
list($dia,$mes,$ano) = explode("/",$diaSelecionado);
$diaSemanaNumeral = date('w',mktime(0,0,0,$mes,$dia,$ano));
But how could I identify the next Thursdays (or any other day of the week depending on the date selected) and make the appropriate registration?
What is the reason to deny the post?
– user24136
I have really realized that many people negatively ask pertinent questions, which can.
– Rogério Dec
My opinion, who is negative without comment is something of people who like to talk about what not to say!
– user60252