I think this would be better for you , and i also giving you an advice please also learn ajax or jquery without these there is nothing..
Your problem will be done with ajax very easily to see how it is take a look upon these codes
this would be your interface file named interface.php
Code:
<html>
<head><title> Mypage </title>
<script type="text/javascript">
function getvalue()
{
if(window.XMLHttpRequest)
{
xmlhttp = new XMLHttpRequest();
}
else
{
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.form1.textbox1.value = xmlhttp.responseText;
}
}
xmlhttp.open("GET","dbconn.php",true);
xmlhttp.send();
}
</script>
</head>
<body>
<form name="form1">
<input type="text" name="textbox1" value=" " size="40" ><br>
<input type="button" name="submit" value="Get Value" onclick="getvalue()">
</form>
</body>
</html>
and this would be your database file i have taken your last result variable that contain your value named result11 , simply display it with echo and it will be in your text box
this file name is dbconn.php
Code:
<?php
$result11 = "what ever your value";
echo $result11;
?>
Thank you..