title: Fatal error: Call to undefined method CI_DB_mysql_driver::inset() in Code Igniter
body: <p>Fatal error: Call to undefined method CI_DB_mysql_driver::inset() in \root\application\models\user_model.php on line 12</p>
  
  <p><strong>user_model code</strong></p>
  
  <pre><code>&lt;?php
  
   class User_model extends CI_Model
  {
      public function __construct()
      {
          parent::__construct();
      }
  
  public function create($email, $password)
  {
      return $this-&gt;db-&gt;inset('user', [
          'email' =&gt; $email,
          'password' =&gt; $password
  
      ]);
  
  
  
  }
  
  public function delete()
  {
      $this-&gt;db-&gt;where(['user_id' =&gt; $user_id]);
      return $this-&gt;db-&gt;delete('user');
  }
  }
  </code></pre>
  
  <p><strong>admin.php code</strong></p>
  
  <p>A PHP Error was encountered</p>
  
  <p>Severity: Notice</p>
  
  <p>Message: Undefined index: password</p>
  
  <p>Filename: controllers/admin.php</p>
  
  <p>Line Number: 14</p>
  
  <pre><code>&lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  
  class Admin extends CI_Controller {
  
  
  public function index()
  {
      $this-&gt;load-&gt;view('admin');
  }
  
  public function create_user()
  {
      $this-&gt;load-&gt;model('user_model');
      echo $this-&gt;user_model-&gt;create($_POST['email'], $_POST['password']);
  }
  
  public function delete_user($user_id)
  {
      $this-&gt;load-&gt;model('user_model');
      $this-&gt;user_model-&gt;delete($user_id);
  }
  }
  </code></pre>
  
  <p>help me please</p>