how to fetch data if there are many requests how to fetch data if there are many requests json json

how to fetch data if there are many requests


Try to add a multidimensional array of result query :

while($obj = $rss->fetch_object()) {     $array[$obj->cid]['cid'] = $obj->cid;     $array[$obj->cid]['title'] = $obj->title;     $array[$obj->cid]['description'] = $obj->description;     $array[$obj->cid]['iconlink'] = $obj->iconlink;         $array[$obj->cid]['marketlink'] = $obj->marketlink;      $array[$obj->cid]['package_name'] = $obj->package_name;     }    echo '<pre>';    var_dump(json_encode($array)); //return ad in json    echo '</pre>';