Can someone help me out? It seems like I get a string instead of an array. Once I pass the array, which is the result of a sql query, from PHP to Javascript through AJAX, I woul
Use JSON.parse() to turn the string from PHP into an array.
success: function(data) { var results = JSON.parse(data); // like this alert( data ); //Here I would like to loop the array and get the values }