suppose if you are using PHP and you you are referring input textbox, then the code would be
Quote:
<?php
mysql_connect('host','user','password');
mysql_select_db('db_name');
$result = mysql_query("SELECT * FROM example WHERE whereid='wherecondition'");
$data = mysql_fetch_array($data);
foreach($data as $showdata)
{
echo "<input type='text' name='tb_name' value='".$showdata['id']."'>";
}
?>
|
That should do it!