0
CodeIgniterを使用してデータベース内のデータを更新したい!私Codeigniter foreach未定義の変数Update Data In
$id = $this->uri->segment(3);
$data['user'] = $this->authentication->show_students();
$data['single_user'] = $this->authentication->show_student_id($id);
ライブラリ
function show_students(){
$query = $this->ci->db->get('users');
$query_result = $query->result();
return $query_result;
}
function show_student_id($data){
$this->ci->db->select('*');
$this->ci->db->from('users');
$this->ci->db->where('id', $data);
$query = $this->ci->db->get();
$result = $query->result();
return $result;
}
認証ライブラリをロードしましたか? –
実際の問題を説明できますか? –
I load パブリック関数__construct() { parent :: __ construct(); $ this-> load-> helper(array( 'form'、 'url')); $ this-> load-> library( 'authentication'); } – deadd1wer