You can format the following with some <tr> or <td> tags, but you get the general idea. Notice that I've broken up your code into two parts, but it'll work if you combine everything and put more echo statements for the HTML tags (<select> and </select>). Where you see $row['id'] and $row['order'], just substitute what you have as equivalent column names from your table for your primary key and "order" column:
<?php
$result = mysql_query("select * from programs order by `order`");
$id = array();
$order = array();
// $num = mysql_num_rows($result);
while ($row = mysql_fetch_array($result))
{
$id[] = $row['id'];
$order[] = $row['order'];
}
?>
<select name = "order">
<?php
$some_value = 10;
$j = count($order);
for ($i=0; $i<$j; $i++)
{
echo '<option value = "'.$id[$i].'"'.($id[$i] == $some_value ?
' selected = "selected"' : '').'>'.$order[$i].'</option>';
}
?>
</select>
HTH.