title: mysqli_stmt::execute() expects exactly 0 parameters, 1 given
body: <p>I have this code in MyFile.php</p>
  <pre><code>$db= mysqli_connect(&quot;host&quot;,&quot;user&quot;,&quot;pw&quot;,&quot;db&quot;);//connect to db
  if (mysqli_connect_errno($con))//check connection
  {echo &quot;Failed to connect to MySQL: &quot; . mysqli_connect_error();}
  //Create a token for the unique link
  $title= $_GET[apt_title];
  $email= $_GET[mail_address];
  $token = sha1(uniqid($email, true));
  $time = $_SERVER[&quot;REQUEST_TIME&quot;];
  //prepare the query to be executed
  $query = $db-&gt;prepare(
  &quot;INSERT INTO pending_users (email, token, title_apt, tstamp) VALUES (?, ?, ?, ?)&quot;
  );
  $query-&gt;execute(
  array(
      $title,
      $email,
      $token,
      $time
  )
  );
  </code></pre>
  <p>Error message:</p>
  <blockquote>
  <p>Warning: mysqli_stmt::execute() expects exactly 0 parameters, 1 given in /websites</p>
  </blockquote>
  <p>How should I call <code>execute()</code> the right way?</p>