title: Wrong parameter count for mysqli_stmt::bind_param()
body: <p>hello i have this code which try to insert data in the database but i face error rong parameter count for mysqli</p>
  
  <pre><code>&lt;?php
  
  session_start();
  
  $regValue = $_GET['regName'];
  
  echo "Your registration is: ".$regValue.".";
  
  
  $servername = "localhost";
  $username = "root";
  $password = "b4sonic";
  $dbname = "b4sonic2";
  
  
  
  $conn = new mysqli($servername, $username, $password, $dbname);
  
  // Check connection
  if ($conn-&gt;connect_error) {
  die("Connection failed: " . $conn-&gt;connect_error);
  }
  
  // prepare and bind
  $stmt = $conn-&gt;prepare("INSERT INTO b4sonic (first_name) VALUES (?)");
  $stmt-&gt;bind_param( $firstname);
  
  // set parameters and execute
  
  $firstname = "John";
  $stmt-&gt;execute();
  
  
  echo "New records created successfully";
  
  $stmt-&gt;close();
  $conn-&gt;close();
  ?&gt;
  </code></pre>
  
  <p>please i ness rapid respone because i work on project and i should comlete it but this probelm </p>