0
I am developing a Specific Client Schedule But I’m not sure how to schedule a week. The schedule works much more 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;
Notice that the select I do
$sql ="SELECT * FROM os where status2 <> 'Fechado' AND start1 BETWEEN '2015/01/05'
AND '2015/01/12' ";
Then it returns me the agendas of this week 2015/01/05 to 2015/01/10.
How can I page this 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 I thank you all for your help
Show Thanks worked legau
– Fabio Henrique