title: My php code shows up as text and wont run
body: <p>Im trying to make something where you type something into the input field and it will send that information to my database in "tabell". However when i try to run it the php code will show up on the site and not run.</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;form name="form" action="" method="get"&gt;
  &lt;input type="text" name="firstname" id="firstname" value="First Name"&gt;
  &lt;input type="submit" name="Submit" 
         value="Submit"/&gt;
  &lt;/form&gt;
  
  
  
  
  
  
  &lt;?php
  $servername = "localhost";
  $username = "root";
  $password = "philip123";
  $dbname = "testing";
  
  // Create connection
  $conn = new mysqli($servername, $username, $password, $dbname);
  // Check connection
  if ($conn-&gt;connect_error) {
  die("Connection failed: " . $conn-&gt;connect_error);
  } 
  
  $value = "$_GET['firstname']
  
  $sql = "INSERT INTO tabell (firstname)
  VALUES ($value)";
  
  if ($conn-&gt;query($sql) === TRUE) {
  echo "New record created successfully";
  } else {
  echo "Error: " . $sql . "&lt;br&gt;" . $conn-&gt;error;
  }
  
  $conn-&gt;close();
  ?&gt;
  </code></pre>
  
  <p>I have also had this excact problem when trying to fetch data from a database when using multiple scripts. All had the same problem. Using ubuntu 16.04 and php7</p>