title: Data not showing up on Wamp server database (using php)
body: <p>I'm trying to <code>INSERT</code> data into a table in my database but I'm not able to. I'm using WAMP.</p>
  
  <p>PHP Script:</p>
  
  <pre><code>$user = 'root';
  $password = '';
  $db = 'comments_schema';
  $host = 'localhost:3306';
  
  $mysqli = mysqli_connect('localhost', $user, $password, $db);
  
  $sql = "INSERT INTO parent_comment(commentid, comment) VALUES ('". '   
  commentid'."', '". "hi" ."')";
  $result = $mysqli-&gt;query($sql);
  
  if($result &gt; 0):
      echo 'Successfully posted';
  else:
      echo 'Unable to post';
  endif;
  </code></pre>
  
  <p>HTML Code:</p>
  
  <pre><code>&lt;/div&gt;
      &lt;form action="database.php" method="post"&gt;
          Comments: &lt;input type="text" name="field_name" /&gt;
          &lt;input type="Submit" /&gt;&lt;/form&gt;
  </code></pre>
  
  <p>However, the rows could not be inserted:</p>
  
  <p><img src="https://i.stack.imgur.com/D9IWK.png" alt="screenshot"></p>