Posts by Leco • 39 points
5 posts
-
0
votes2
answers80
viewsA: Array losing field after exiting foreach
try like this: foreach ($this->questions as $question) { var_dump($question); // aqui é apresentado o array no estado comum $this->questions['survey_id'] = $survey_id; var_dump($question); //…
-
0
votes1
answer185
viewsQ: Help in logic to not overlap a band of schedules already exists at the base
Good morning. As suggested by a community member, in the post that started this, I come to ask for collaboration in a logic. I have a table that contains the fields start time and hora_termino. I…
-
0
votes4
answers724
viewsA: Logical doubt: How to find out if an hour is between the hours interval (independent of the day)
When I wrote the question, I believed that only with logic would it be possible to solve this pineapple, but I could not. Through Anderson’s code I almost solved, but there are some details. The…
-
0
votes4
answers724
viewsA: Logical doubt: How to find out if an hour is between the hours interval (independent of the day)
Yes, in this case, 07:00 to 09:00, Se horaUsuario >= horaInicio E horaUsuario <= horaFim would meet the need. However, the problem is when it passes the 0h... imagine the period be 22:00 -…
-
2
votes4
answers724
viewsQ: Logical doubt: How to find out if an hour is between the hours interval (independent of the day)
Regardless of the time, I need to find out if a time is between the initial and final hour interval, given the 24-hour format. The logic can be both in PHP and MYSQL, since either way should stop a…