I have a simple ajax call:
function init() {
$.ajax({
url: \"./myFolder/user.php\",
data: {
action: \"init\"
},
t
u should have in your user.php somthing like this:
die(init());
On user.php
page you need to do :-
function init() {
$arr = array(
array(
"region" => "valore",
"price" => "valore2"
),
array(
"region" => "valore",
"price" => "valore2"
),
array(
"region" => "valore",
"price" => "valore2"
)
);
echo json_encode($arr);
}