Hi,

this code seems good, (I didn't change the PHP, but validated it as html code).

PHP Code:
while ($row mysql_fetch_array($aJobs)) {
    
$sOptionSelected '';
    if (
$row['job_id'] == $jobId) {
        
$sOptionSelected 'selected="selected"';
    }
    
$sJobOptions $sJobOptions.'<option value="'.$row['job_id'].'" '.$sOptionSelected.'>'.$row['job_desc'].'</option>';

q. from where do you get the value of $jobId?, please write more code

Feras Jobeir