I have the following search:
SELECT * FROM ('agendamentos')
WHERE 'age_data_agendado_para' BETWEEN "2016-08-28" and "2016-08-30"
In the database, I have:
But on my return, I can only search for two records, as print_r ():
Array - Campos de Pesquisa
(
[age_senha] =>
[age_nome] =>
[age_cod_consultora_atendido] =>
[age_cod_consultora_agendado] =>
[age_data_inicial] => 2016-08-28
[age_data_final] => 2016-08-30
[age_status] =>
)
Array - Resultados Print_r
(
[0] => stdClass Object
(
[age_cod] => 6
[age_cod_interessado] => 2
[age_data_agendamento] => 2016-08-18 09:00:12
[age_cod_consultora_agendado] => 1
[age_cod_consultora_atendido] => 1
[age_data_agendado_para] => 2016-08-29 08:00:00
[age_senha] => MA2745
[age_status] => 50
)
[1] => stdClass Object
(
[age_cod] => 7
[age_cod_interessado] => 2
[age_data_agendamento] => 2016-08-18 09:00:30
[age_cod_consultora_agendado] => 1
[age_cod_consultora_atendido] => 1
[age_data_agendado_para] => 2016-08-29 08:00:00
[age_senha] => MA2740
[age_status] => 50
)
)
Can someone tell me why I can not list all the items?