开发者

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'];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜