title: How do I load data to textbox from mysql
body: <p>I have (html)</p>
  
  <pre><code>input type="text" name="input"
  textarea name="output"
  </code></pre>
  
  <p>Next, I have some table, first name and last name. When I inserting first name in input area I would like to show last name in output area.
  Below PHP query doesn't working.</p>
  
  <pre><code>$input = $_POST['input'];
  $select = mysql_query("SELECT first_name FROM table WHERE input=$input");
  $req = mysql_fetch_array($select);
  </code></pre>