title: Inserting data to db in PHP
body: <p>I'm trying to insert somethig to db and after i write this code i get just a blank page in php. Cam you help me ? if i delete all // i get blank page if it is as now i get imput containers </p>
  
  <pre><code>    &lt;?php
  function create()
  {
      if(isset($_POST["submit"]))
      {       
          $db = new mysqli('localhost', 'root', 'root', 'idoctor_db');
  
          $username = $db-&gt;real_escape_string($_POST['username']);
          $password = $db-&gt;real_escape_string($_POST['password']);
          $password_conf = $db-&gt;real_escape_string($_POST['password_conf']);
          $nick = $db-&gt;real_escape_string($_POST['nick']);
  
          //create_new_user($username, $password, $password_conf, $nick);
          //$db-&gt;query
          //('
              //INSERT INTO  `idoctor_db`.`users` (`ID` ,`Login` ,`Password` ,`Name` ,`Level`)
              //VALUES ('5 ' , 'kev5', 'roo5', 'kevkev5', ' 3 ' );
          //');
  
  
      }
  }
  
  ?&gt;
  
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Login&lt;/title&gt;
      &lt;link rel="stylesheet" href="css/login.css" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div class="container"&gt;
  
          &lt;form action="&lt;?php create(); ?&gt;" method="POST"&gt;
              &lt;input type="text" name="username" placeholder="Username..." /&gt;
              &lt;input type="password" name="password" placeholder="Password" /&gt;
              &lt;input type="password" name="password_conf" placeholder="Confirm password" /&gt;
              &lt;input type="text" name="nick" placeholder="Nick" /&gt;
              &lt;input type="submit" value="Create" name="submit"/&gt;
          &lt;/form&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>