严重性:警告
消息:count():参数必须是实现Countable的数组或对象
文件名:controllers / web.php
行号:15
class Web扩展CI_Controller {
public function index() {
$this->load->view('tampilan_login');
}
public function ceklogin() {
if(isset($_POST['login'])){
$username = $this->input->post('username',true);
$password = $this->input->post('password',true);
$cek = $this->web_model->proseslogin($username,$password);
$hasil = count($cek);
echo $hasil;
}
}
}