public function insert_success()
{
$a=$this->input->post('n1');
$b=$this->input->post('n2');
$c=$this->input->post('n3');
echo $a.$b.$c;
$sql="insert into register (name,password,email)
values('$a', '$b' , '$c' )";
$qr=$this->db->simple_query('$sql');
retu true;
}
I am doing this in CI 3.0.6 version ...and on line 15 it is showing an error... Call to a member function simple_query() on null in C:XamphtdocsMVC1applicationmodelsabc.php on line 15...
please help me out...
