Php 不同的表,相同的ID';Codeigniter中的s数据跳过

Php 不同的表,相同的ID';Codeigniter中的s数据跳过,php,mysql,codeigniter,Php,Mysql,Codeigniter,我有两张桌子。一个表格包含问题。第二个表用于使用问题ID和用户ID保存用户的答案。如果quick\u answer表的问题ID与quick问题ID匹配,则此问题不会显示在测验表问题列表中 以下是分页显示问题的模型方法 public function quizs($start,$end) { $this->db->select() ->from('quiz') ->limit($start,$end); $

我有两张桌子。一个表格包含问题。第二个表用于使用问题ID和用户ID保存用户的答案。如果
quick\u answer
表的问题ID与
quick
问题ID匹配,则此问题不会显示在测验表问题列表中

以下是分页显示问题的模型方法

public function quizs($start,$end)
{
    $this->db->select()
             ->from('quiz')
             ->limit($start,$end);
    $data = $this->db->get();
    return $data->result_array();
}
public function posts_count()
{
    $this->db->select('quiz_ID')
             ->from('quiz');
    $data = $this->db->get();
    return $data->num_rows();
}
下面是显示问题的方法

public function quiz($start=0)
{
    $data['questions'] = $this->quiz->quizs(1,$start);
    $this->load->library('pagination');
    $config['base_url'] = base_url().'student/quiz/';
    $config['total_rows'] = $this->quiz->posts_count();
    $config['per_page'] = 1;
    $this->pagination->initialize($config);
    $data['pages'] = $this->pagination->create_links();
    $data['solved'] = $this->quiz->bio_question_solved();
    $this->load->view('student/bio_quiz',$data);
}

用一个例子详细说明您想在
函数quiz($start,$end)
中选择哪些字段?问题和选项。