error started appearing
PHP Fatal error: [] operator not supported for strings in
$data = date('Y-m-d');
$q = mysqli_query($con, "SELECT * FROM agendasalao WHERE dataReserva >= $data ORDER BY dataReserva ASC");
$qtde_registros = mysqli_num_rows($q);
if ($qtde_registros > 0) {
while ($row = mysqli_fetch_object($q)){
$data[] = $row; <<< erro aqui
}
echo json_encode($data);
}