title: mysql data to form with php
body: <p>I have this code to connect to mysql and get data from one table :</p>
  
  <pre><code>&lt;?php
  
      //Include database connection details
      require_once('sql/config.php');
  
      //Connect to mysql server
      $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
      if(!$link) {
          die('Failed to connect to server: ' . mysql_error());
      }
  
      //Select database
      $db = mysql_select_db(DB_DATABASE);
      if(!$db) {
          die("Unable to select database");
      }
  
      $result = mysql_query("SELECT * FROM customers");
  
      while($row = mysql_fetch_array($result)) {
          echo $row['email'];
          echo "&lt;br /&gt;";
      }
  
      mysql_close($link);
  ?&gt;
  </code></pre>
  
  <p>Now how can I fill this email data from mysql to the form that was create previously safely? </p>