I think what Niclov was trying to ask is what type of function are you using to get the values out of your database?
mysql_result(), mysql_fetch_array(), mysql_fetch_object() or something similar.
You can then loop through the array or class like so:
[tt]
$sql = "SELECT * FROM table WHERE id=1";
$result = mysql_db_query("database",$sql) or die("failed query"

;
$result_array = mysql_fetch_array($result);
for ($i=0; $i<count($result_array); $i++) {
print "<input type=\"text\" name=\'".$result_array[$i]." value=\"".$result_array[$i]."\"><br>";
}
[/tt]
I think that is what Niclov was trying to say.
Hope this helps.
-Vic
vic cherubini
krs-one@cnunited.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash
====