php return ajax json from mysql query code example
Example: php return json data
header('Content-Type: application/json');
$colors = array("red","blue","green");
echo json_encode($colors);
header('Content-Type: application/json');
$colors = array("red","blue","green");
echo json_encode($colors);