title: PHP echo issues, incorrect display
body: <p>So I'm making an eCommerce website for uni and everything was fine until I actually tried viewing the site in chrome. Essentially I'm generating a table from MySQL stuff back at uni. The problem I'm having is above where the table should be. Excuse the code being a mess. I'm in between adding things.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php $command='select * from products' ; $runCommand=m ysqli_query($connection, $command); if (mysqli_num_rows($runCommand)&gt;0){ echo "
  &lt;form id=\ "shoppingcart\" action=\ "cart.php\" method=\ "post\"&gt;"; echo "
    &lt;table&gt;"; echo "
      &lt;thead&gt;"; echo "
        &lt;tr&gt;"; echo "
          &lt;th scope=\ "col\"&gt;Image&lt;/th&gt;"; echo "
          &lt;th scope=\ "col\"&gt;Item&lt;/th&gt;"; echo "
          &lt;th scope=\ "col\"&gt;Qty&lt;/th&gt;"; echo "
          &lt;th scope=\ "col\"&gt;UpdatedQty&lt;/th&gt;"; echo "
          &lt;th scope=\ "col\"&gt;Price&lt;/th&gt;"; echo "&lt;/tr&gt;"; echo "&lt;/thead&gt;"; while($ROWVARIABLE= mysqli_fetch_assoc($runCommand)) { //line BROKE goes here //need an if quantity=0 then don't print the bunch we have under here...// echo "
      &lt;tr&gt;"; echo "
        &lt;td&gt;
          &lt;img src='". $ROWVARIABLE["image"]. "' alt='". $ROWVARIABLE["decription"]. "' height='200' '&lt;/img&gt;&lt;/td&gt;"; //this is still one line, don't flip shit. It 's the img with a hover over Decription
     echo "&lt;td&gt;". $ROWVARIABLE["name"]. "&lt;/td&gt;"; //Item 
     echo "&lt;td&gt;".newID[$ROWVARIABLE["ID"]]."&lt;/td&gt;"; //Quantity
     echo "&lt;td&gt;&lt;select name=\"updateQ\" id=\"updateQ\"&gt;"; //Updated Quantity
     echo "&lt;option selected=\"selected\"&gt;No change&lt;/option&gt;";
     echo "&lt;option&gt;1&lt;/option&gt;";
     echo "&lt;option&gt;2&lt;/option&gt;";
     echo "&lt;option&gt;3&lt;/option&gt;";
     echo "&lt;option&gt;4&lt;/option&gt;";
     echo "&lt;option&gt;5&lt;/option&gt;";
     echo "&lt;option&gt;6&lt;/option&gt;";
     echo "&lt;option&gt;7&lt;/option&gt;";
     echo "&lt;option&gt;8&lt;/option&gt;";
     echo "&lt;option&gt;9&lt;/option&gt;";
     echo "&lt;/select&gt;";
     echo "&lt;/td&gt;";
     //BROKE 2.0
     // Gotta fix this ^^ line to display £Price of all units added(£Price of one unit)
     
    }
   echo "&lt;/table&gt;";
   echo "&lt;/br&gt;";
   }
   else{
    echo "Table broken, pls stahp!";
   }
   ?&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>If you run the code snippit it throws a bunch of echos above the table and I have no idea why or how to fix it. I guess this is probably a rookie error but I'm really panicking. The file is saved as <code>.php</code> and I start the file with <code>&lt;!DOCTYPE html&gt;</code>. This is near the top of my file</p>
  
  <p><code>&lt;?php $connection = mysqli_connect(the stuff I need to connect.); ?&gt;</code>
  Thought that is relevant. </p>
  
  <p><a href="https://gyazo.com/0dd6a3d7b025133c5b061e6af06f1091" rel="nofollow">https://gyazo.com/0dd6a3d7b025133c5b061e6af06f1091</a></p>