I don't get the purposes of all those SELECT queries in your code or the use of the involved tables in them. Anyway, you'd need something like
PHP Code:
$sql = "SELECT select_id, linecard_name FROM selection ". "ORDER BY linecard_name";
$rs = mysql_query($sql);
----------------------
PHP Code:
echo '<Select name="selectID" >
<option value ="0"> Select from here </option>';
while($row=mysql_fetch_assoc($rs)){
printf("<option value=\"%s\" %s>%s</option", $row['select_id'],
$row['select_id']==$selected_value? 'selected="selected"':'',
$row['linecard_name']);
}
echo '</select>';