title: Uncaught ArgumentCountError: Too few arguments to function quote_smart(), 1 passed
body: <p>I have a page to add tasks into my task management system. But I'm getting the following error:</p>
  
  <blockquote>
    <p>Uncaught ArgumentCountError: Too few arguments to function quote_smart(), 1 passed</p>
  </blockquote>
  
  <p>How can I fix this problem? This is my code:</p>
  
  <pre><code>if ($exist){
      $msg = 'Task name already exist!';
  }
  else{
      //unwanted HTML (scripting attacks)
      $name1 = mysqli_connect('localhost','root','','taskmanager');
      $taskname = htmlspecialchars($taskname);
  
      //function
      $taskname = quote_smart($taskname);
  
      $name1 = mysqli_connect('localhost','root','','taskmanager');
      $SQL = "INSERT INTO task_list (`taskname`, `ds`) VALUES ($taskname, '$des')";
      $result = mysqli_query($name1,$SQL);
      if($result){
          $msg = 'Task succesfully added.';
          $SQL = "CREATE TABLE $tsk (username VARCHAR(50) NOT NULL, accepted TINYINT(1) NOT NULL DEFAULT 0)";
          mysqli_query($name1,$SQL);
      }
      else{
          $msg = "Error adding task";
      }
  }
  </code></pre>