title: Prepared statement help, Number of variables doesn't match number of parameters in prepared statement
body: <p>I'm getting this error : Number of variables doesn't match number of parameters in prepared statement
  every time I run this code:</p>
  
  <pre><code>$dbh = new mysqli("localhost", "***", "***", "pics");
      $stmt = $dbh-&gt;prepare("INSERT INTO comments (username, picture, comment) VALUES (?, ?, ?)");
     $stmt-&gt;bind_Param('s', $username);
     $stmt-&gt;bind_Param('d', $picture);
     $stmt-&gt;bind_Param('s', $comment);
  
     $username=$_SESSION['username'];
     $picture=$_GET['id'];
     $comment=$_POST['comment'];
     $stmt-&gt;execute();
  </code></pre>
  
  <p>What's the problem?</p>