Ok i have this drop down box
<select name='weighting'>
<option value='1'$ws[0]>1 (Least Shows)</option>
<option value='2'$ws[1]>2</option>
<option value='3'$ws[2]>3</option>
<option value='4'$ws[3]>4</option>
<option value='5'$ws[4]>5 (Most Shows)</option>
</select>
Now the drop down should show selected choice from database
for ($count=1; $count<=5; $count++) {
if ($count == $weighting) {
$ws[$count - 1] = " selected";
} else {
$ws[$count - 1] = "";
}
}
But the above code isnt working for me..