title: Retrieve data from database and display in textbox
body: <p>How am i going to display the data from the database into the textbox? pls help</p>
  
  <pre><code>             //Javascript textbox
               &lt;div class="Text"&gt;
               &lt;input class="Text" type="text" value="
               &lt;?PHP echo     $id?&gt;" name="id" size="19"/&gt;
               //PHP MYSQL Connect code
               &lt;?php
               error_reporting(0);
               include('../connection.php');
               $id =$_REQUEST['id'];
  
               $result = mysql_query("SELECT * FROM cust WHERE id  = '$id'");
               $test = mysql_fetch_array($result);
               if (!$result) 
       {
       die("Error: Data not found..");
       }
              $id=$test['id'] ;
  
              ?&gt;
  </code></pre>