Isn't the passed id converted to 0? What is the purpose of $data['item'] query?
柠檬不萌^_^
柠檬不萌^_^ 2018-12-03 21:47:56
0
1
1235

public function add()

{

$id=(int)input('get.id');

$data['item']= $this->db->table('admins')->where(array('id'=>$id))->item();

}

$data['item']=$this->db->table('admins')->where(array('id'=>$id))->item();

Isn’t the passed id converted to 0? What is the purpose of the $data['item'] query?

柠檬不萌^_^
柠檬不萌^_^

reply all(1)
小明

Why did the id change to 0? The query should be to check whether the user information exists in the administrator database, and then determine the login.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template