3
I’m making a system kind of like a calendar / schedule. In it I have a table semestre
who has a field data de incio
and one of data fim
and I need to go through these dates by printing the name of each day on head
of a table and a button for each of these days so that the user can register or not a new entry on that day.
How to go these days? I’ve tried foreach
but it didn’t work, I also tried a logic with a for
and I couldn’t...
Follow some of the code I’ve made so far:
if(!isset($_SESSION)) {
session_start();
}
$idSemestre = $_SESSION['SemestreGeral'];
$oSemestre = new semestresclass();
$oSemestre -> listarEdicao($idSemestre);
$array = mysql_fetch_array($oSemestre->retorno());
$start_date = $array['DataDeInicio'];
$end_date = $array['DataDeTermino'];
$dataInicio = strtotime($start_date);
$dataFim = strtotime($end_date);
foreach ?????????????????????
Very feral, that was it guys!!! Now you see, I needed to limit these days to appear one week and then jump to another... Would any of you have an idea how to do that?
– Alceu
@Alceu as well? If it is the case, create a question specifically for this case :)
– Rodrigo Rigotti