title: When I insert data, it shows '1' in database
body: <p>I have a strange problem. I'm learning prepared statements. I created a simple page with 1 field <code>nama</code> and a table with a column <code>nama</code>. I just want to see the data goes in. When I press the submit button, there is data in the table, but everytime I insert data it shows <code>1</code>. All the rows display the same figure. Can any one guide me through this?</p>
  
  <pre><code>&lt;?php
  
  /**
   * Start the session.
   */
  session_start();
  
  require 'connect-test.php';
  
  $nama= isset($_POST['nama']);
  
  $stmt=$conn-&gt;prepare("INSERT INTO test (nama) VALUES (?)");
  $stmt-&gt;bind_param("s", $nama);
  $stmt-&gt;execute();
  if (!$stmt)
  { printf("Errormessage: %s\n", $mysqli-&gt;error);}    
  
  $stmt-&gt;close();
  $conn-&gt;close();
  
  ?&gt; 
  
  &lt;html&gt;
  &lt;body&gt;  
  &lt;form name="form2" method="post" action="test-deletenanti.php"&gt;
    &lt;p&gt;Name :
      &lt;input type="text" name="nama" id="nama"&gt;
    &lt;/p&gt;
    &lt;p&gt;
      &lt;input type="submit" name="button" id="button" value="Submit"&gt;
    &lt;/p&gt;  
  &lt;/form&gt;       
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>