How to passing ID Values in Php php codeigniter

  PHP

Email

public function runmocktest($sub_coures_id)
{
if ($this->session->userdata('dqsuser_id') != '')
{
$data = ['dqsuser_id' => $this->session->userdata('dqsuser_id') ];
// $sub_coures_id=$this->input->get('$sub_coures_id');
$data["results"] = $this->usermodel->fetch_data($sub_coures_id);
$this->load->view('front/header', $data);
$this->load->view("users/runmocktest", $data);
}
}
 
$query = $this->db->query("select * from dqs_question_table where sub_coures_id = '".$sub_coures_id."'");
return $query;
 
Spread the Code

Leave a Reply

avatar

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
Notify of