1
I need to know if you returned anything from the database. Any suggestions?
var url = "agenda_salao_pesquisa.php?dataReserva="+busca;
$.getJSON(url, function(result) {
//preciso saber se veio algo da consulta
$.each(result, function(i, field) {
var id = field.id;
var dataReserva = field.dataReserva;
var horaReserva = field.horaReserva;
var unidade = field.unidade;
var responsavel = field.responsavel;
var salao = field.salao;
});
});
@Valdeirpsr nothing happens. Actually I need to fill a div if nothing returns.
– Ezequiel Tavares
the request brings some value or returns an empty value?
– Valdeir Psr