title: PDO bindcolum statement
body: <p>I'm doing a register code for my website and I'm blocked on the part of doing the PDO::bindcolumn part.
  Here is the code I've written:</p>
  
  <p>This is my register.php</p>
  
  <pre><code>&lt;fieldset id="registrarse"&gt; &lt;form method="post" action="register2.php"&gt;
      &lt;label&gt;Nombre: &lt;/label&gt;
      &lt;input type="text" name="username" placeholder="Nombre de usuario"&gt;&lt;br&gt;
      &lt;label&gt;Password:&lt;/label&gt;
      &lt;input type="password" name="password" placeholder="Password"&gt;&lt;br&gt;
      &lt;label&gt;Correo electrónico:&lt;/label&gt;
      &lt;input type="email" name="mail" placeholder="Correo electrónico"&gt;&lt;br&gt;
      &lt;label&gt;Género:&lt;/label&gt;
      &lt;input type="radio" name="sex" value="Hombre"&gt;Hombre
      &lt;input type="radio" name="sex" value="Mujer"&gt;Mujer&lt;br&gt;
      &lt;p id="letra"&gt;Esto es para asociar un diseño masculino o femenino&lt;/p&gt;
      &lt;input type="submit" value="¡Regístrate!"&gt;
      &lt;input type="reset" value="Resetear campos"&gt; &lt;/form&gt; &lt;/fieldset&gt;
  </code></pre>
  
  <p>And this is my register2.php:</p>
  
  <pre><code>&lt;?php
  $user = 'root';
  $pass = 'root';
  $db = new PDO('dblib:host=localhost;dbname=crespo;charset=UTF-8', $user, $pass);
  $stmt = $db-&gt;prepare("INSERT into users (username, password, mail, sex) VALUES (:username, :password, :mail, :sex)");
  $stmt-&gt;execute(array(':username'=&gt;$_POST['username'],
                      ':password'=&gt;$_POST['password'],
                      ':mail'=&gt;$_POST['mail'],
                      ':sex'=&gt;$_POST['sex']));
  ?&gt;
  </code></pre>
  
  <p>Now I'm stucked and I don't know what to do. I've been following an example from the official PDO manual from php.net, but I don't know what to do next.
  I think it's something like <code>$stmt-&gt;bindColumn(1, $type, PDO::PARAM_STR, 256);</code> so, what do I have to do now?</p>
  
  <p>Thanks.</p>