My Ajax request is returning 3 records from a PHP query (yes, I'm sure), so we have arrays of type:
array 1 ["João", "19/05/1986", "masculino", "Programador", "Campo Grande"]
array 2 ["Maria", "15/05/1988", "feminino", "Enfermeira", "Londres"]
array 3 ["Patricia", "04/11/1980", "feminino", "Servidora Pública", "Fortaleza"]
Question: How to separate this data so that I can get the information from each array separately and continue my system? To help I'll put a piece of code
$.ajax({
type: "POST",
dataType: "json",
url: "<?php bloginfo('template_url'); ?>/scripts/php_functions.php",
data: {
idClienteDocumentos: idClienteDocumentos,
ajax: "true"
},
success: function(result) {
var resultado = JSON.parse(result);
// preciso montar as arrays cujo contador me confirmou que existem
$("#Contador").val(resultado[6]);
For those who feel compelled to give it another try, I need to put this within a while PHP.