Is it possible to pass two variables from PHP to AJAX and use them seperately for instance:
fetching this:
echo $row['route'] + $row['Distance'] ;
which I then can:
$.getJSON("DisplayIndividualMySQLi.php", function(data) {
// alert(route);
// alert(distance);
}
You can put them together in an array, which you then json-encode() and echo.
or if you want to send the whole $row you can just :
(But only send data that you need for good practice.)
Afterwards you can access the data as data.route, for instance :