title: Display database data in HTML text area (PHP, MySQL)
body: <p>I am trying to get data from my database to appear in a textbox or textarea so that it can be easily edited, ready to be submitted to the database. For some reason the data displays  but not in a textarea, and therefore cant be edited. This could be a syntax issue. Can anyone help? Thank you.</p>
  
  <p>My code is:</p>
  
  <pre><code>while($row = mysqli_fetch_array($result))
  {
    echo "&lt;div id='item'&gt;";
    echo "&lt;form action='updateproductmain.php' method='post'";
    echo "&lt;textarea rows='5' cols='20' name='quote' wrap='physical'&gt;" . $row['product_name'] . "&lt;/textarea&gt;";
    echo "&lt;input type='submit' value='Submit'&gt;";
    echo "&lt;/form&gt;";
    echo "&lt;/div&gt;";
  }
  </code></pre>