Message: Invalid argument supplied for foreach in CodeIgniter

后端 未结 3 1995
名媛妹妹
名媛妹妹 2021-01-17 06:06

i am facing few issues during an application of Codeigniter -- Created an function like

function searchUnivtab() {
        $country = $this->input->po         


        
3条回答
  •  说谎
    说谎 (楼主)
    2021-01-17 06:36

    if(is_array($data)) {
        foreach($data as $d){
            $html .= '';
        }
    } else {
        echo 'data is not an array.';
    }
    

提交回复
热议问题