I am developing a Specific Agenda for a client but I'm not sure how to page the calendar per week. The schedule works much more I do not know how to page now
date_default_timezone_set('America/Sao_Paulo');
$data1 = date('d/m/Y');
$hora1 = date('H:i:s');
include'../assets/config.php";
$sql ="SELECT * FROM os where status2 <> 'Fechado' AND start1 BETWEEN '2015/01/05'
AND '2015/01/12' ";
$resultado = mysql_query($sql) or die( mysql_error());
while ($linha = mysql_fetch_assoc($resultado)) {
$id1 = $linha["id1"];
$nome = $linha["nome_cliente"];
$nome_tec = $linha["nome_tec"];
$tecnico = $linha["nome_tecnico1"];
$start1 = $linha["start1"];
$d1 = substr($start1, 0, 10 );
$t = ' ';
$d2 = substr($start1, 11, 5 );
$start = $d1.$d2;
$data1 = implode("/",array_reverse(explode("-",$d1)));
$datal = $data1.$t.$d2;
Note that select I do
$sql ="SELECT * FROM os where status2 <> 'Fechado' AND start1 BETWEEN '2015/01/05'
AND '2015/01/12' ";
Then he returns me the agendas for this week from 2015/01/05 to 2015/01/10.
How can I page this from 2015/01/05 to 2015/01/10. --- > Next 2015/01/11 to 2015/01/17 ------ > Next 2015/01/18 to 2015/01/24
From now on Thanks to everyone for help