title: echo out mysql_real_escaped quotes cuts off strings after quote or double quote
body: <p>I'm experiencing this odd, yet annoying syntax problem for browsers. By coding the way below, I lose all the strings after the special character: <code>"</code></p>
  
  <pre><code>    echo '&lt;td&gt;&lt;input type=text style=width:100px name=itembrand value="' . $itembrand . ' " &lt;/td&gt;';
      echo '&lt;td&gt;&lt;input type=text style=width:150px name=itemname value="' . $itemname . '" &lt;/td&gt;';
      echo '&lt;td&gt;&lt;input type=text style=width:150 name=serialnr value="' . $serialnr . '" &lt;/td&gt;';
      echo '&lt;td&gt;&lt;input type=text style=width:150px name=addinfo value="' . $addinfo . '" &lt;/td&gt;&lt;td&gt;';
  </code></pre>
  
  <p>If I code the other way around, I lose everything after the <code>'</code>:</p>
  
  <pre><code>    echo "&lt;td&gt;&lt;input type=text style=width:37px name=code value='" . $code ."' &lt;/td&gt;";
      echo "&lt;td&gt;&lt;input type=text style=width:100px name=itembrand value='" . $itembrand . "' &lt;/td&gt;";
      echo "&lt;td&gt;&lt;input type=text style=width:150px name=itemname value='" . $itemname . "' &lt;/td&gt;";
      echo "&lt;td&gt;&lt;input type=text style=width:150 name=serialnr value='" . $serialnr . "' &lt;/td&gt;";
      echo "&lt;td&gt;&lt;input type=text style=width:150px name=addinfo value='" . $addinfo . "' &lt;/td&gt;&lt;td&gt;";
  </code></pre>
  
  <p>What is the correct syntax, to echo out database items even with <code>'</code> and <code>"</code> together with the strings after it?</p>
  
  <p>Note:<br/> I'm using <code>&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;</code> and the database entry is right, so this must be something with the syntax.</p>