good there is some way to concatenate a json, what my json returns is not more than a select but there are 120 records go from r1 ........ r120, I want to go through it but in the console it prints me undefined1 .... undefined120, and what I want is for me to return what I have, not to be copying and pasting 120 times
for(var i=1; i<111;i++){
console.log(json.Data.r+[i]);
}
This is my controller, if it's any good
if ($data) {
$this->output
->set_content_type('application/json')
->set_status_header(200)
->set_output(json_encode(array(
"Status" => true,
"Message" => "GET",
"Data" => $data
)));
}else
{
$this->output
->set_content_type('application/json')
->set_status_header(500)
->set_output(json_encode(array(
"Status" => false,
"Message" => "GET"
)));
}