If I get you right - the way I do it is after I retrieve the correct record from the database I have the form displayed like-
<form action='update.php' method='post'>
<input type=hidden name='primary_key_in_table_name' value='$array[primary_key]'>
Name:<input type='text' value='name'>$array[name]
<br>
Phone:<input type='text' value='phone'>$array[phone]
<input type='submit' value='submit'>";
then in the process page:
$query="update tablename set (name, phone) values ($name, $phone) where primary_key=$primary_key_in_table_name";
This might not be what you need. If you are trying to display many records put this whole thing in a loop.