array inside array in codeigniter
I am trying to put the integer value of $QQ array into presenter array, no luck please help.
$QQ = $this->MAudio->getAllAudio();
$presenter = $this开发者_如何转开发->Profile_model->getProfile($QQ['a_presenter_id']);
$data['name'] = $presenter['name'];
I think issue is with $this->MAudio->getAllAudio(); I think u have return Object now u got to convert that object into value by calling row() or row_array() or result() or result_array()
Try this code
$QQ = $this->MAudio->getAllAudio()->row_array();
$presenter = $this->Profile_model->getProfile($QQ['a_presenter_id']);
$data['name'] = $presenter['name'];
精彩评论