我的模型如何解決錯誤陣列串轉換
public function tertinggi() {
$sql="SELECT max(jmlnilai+case when prestasi is NULL then 0 else prestasi end) as tertinggi FROM datasiswa";
$hasil = $this->db->query($sql);
if($hasil->num_rows() > 0){
return $hasil->row_array();
}
return false;
}
我的控制器
$data['tertinggi']= $this->m_peserta->tertinggi();
$this->load->view('admin/v_header');
$this->load->view('admin/v_pages',$data);
$this->load->view('admin/v_footer');
我的視圖
Nilai Tertinggi : <?php echo $tertinggi;?>
我有一個錯誤「的消息:Array對字符串轉換'