title: Parameterized SQL : Insert not working
body: <p>I'm trying to do <code>INSERT</code> using parameterized SQL. I'm new to parameterized SQL. My table name is <code>archpedia.full_developers (db.table)</code></p>
  
  <p>My connection is also working perfectly. I've created custom user with only <code>SELECT, INSERT, UPDATE</code> privilege on my database archpedia. I even checked the <code>SQL</code> with root just to confirm whether there was some error with user privilege but even root doesn't seem to work.</p>
  
  <p>Here is my php :</p>
  
  <pre><code>$query = "INSERT INTO full_developers (fullname, username, email, password, project, phone, token, salt) VALUES (?, ?, ?, ?, ?, ?, ?)";
      $insert_stmt = $mysqli-&gt;prepare($query);
      echo "ok?";
      if ($insert_stmt) {
          $insert_stmt-&gt;bind_param('sssssiss', $fullname, $username, $email, $password, $project, $phone, $uniqueToken, $random_salt);
          //$insert_stmt-&gt;execute();
          // Execute the prepared query.
          echo "check";
          if (! $insert_stmt-&gt;execute()) {
              header('Location: ../error.php?err=Registration failure: INSERT');
          }
      }
      //header('Location: ./register_success.php');
  </code></pre>
  
  <p>Well my error is that <code>$insert_stmt-&gt;prepape($query);</code> doesn't work. I don't get any errors. When I put in statement echo "check" to see weather <code>$insert_stmt</code> is working or not, it is never displayed. I'm unable to know where exactly I'm doing wrong hence any help would be grateful. </p>