For a text box you can use the Value attribute for Input, with $var being the current entry in your mySQL table.
<input type="text" value="<? $var; ?>">
Alternatively, you could write a simple script that only updates columns that have any content in the corresponding php variable.
Hope this helps.