I am developing customizable graphics by users where they can select the options they want by sending the parameters to the php that searches the sql and returns me what I want. For graphics I'm using highcharts. But I'm having a hard time understanding how I return the vector of my function to js. I'm using jquery so I do not need to refresh the page. But when I do
$.post('envia.php', {nome: nome}
It performs the search of the data, but I do not know how I get this data back to my page where the graphs are generated. Would anyone know the solution?