hey buddy
im at work at the moment so im not able to 100% check my answers here, but i think your problem with the blank results is due to your use of
myql_fetch_array - this returns an array indexed numerically. if you modify your line to say
$record=mysql_fetch_array($result_s, MYSQL_ASSOC);
this will make the array associative, indexed by the field name. so your references to $record[fieldname] will be valid.
you could also use mysql_fetch_assoc($result)
I might be wrong but give that a bash.
For the second part of your query, you need to set the selected option.
Its a bit hard to give you an example using your scenario because im not quite sure what youre page is for, but setting
<option selected value="">
will tell the browser to use that value as preselected option when the form loads.
you might need to loop through your above sql result array to match with the desired result, and when you find it, set it as selected, and set the others as options...
I have done the same thing in my current project just dont have the code handy 🙂