1
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);
return true;
}
Ben CI 3.0.6 sürümünde yapıyorum içinde çalışmadığı ve hat 15 üzerinde bir hata gösteriliyor:Sorgu CI 3.0.6
Call to a member function simple_query() on null in C:\Xamp\htdocs\MVC1\application\models\abc.php on line 15...
bana yardım edin ...
C: \ Xamp \ htdocs \ MVC1 \ application \ models \ abc.php' içinde 15 satırı nedir? –
$ qr = $ this-> db-> simple_query ($ sql); –
"$ this-> db" veritabanınız düzgün ayarlanmadı gibi görünüyor. –