聽到是我使用的代碼。Codeigniter消息:使用未定義常量
$data = array( question=>$this->input->post('questions'),
answer1=>$this->input->post('answer1'),
answer2=>$this->input->post('answer2'),
answer3=>$this->input->post('answer3'),
answer4=>$this->input->post('answer4'),
answer5=>$this->input->post('answer5'),
correctanswer=>$this->input->post('correctanswer')
);
$this->db->insert('questionandanswers',$data);
請提供此通知消息的幫助。
一個PHP錯誤遇到
Severity: Notice
Message: Use of undefined constant question - assumed 'question'
謝謝,它的工作 – Chetan
您的歡迎..... –