i used array function to show list of drop down but for edit the form i want to show fetched value but it show some error.
my code is
<td class="tdcls">Bus Name</td>
<tr>
<td class="tdcls">Bus Name</td>
<td><select name="bus_name" required>
<option value="#">Select</option>
<?php
$busName= getBusName();
foreach($busName as $code=>$bname)
{
echo "<option value=\"$code\" if(isset($_REQUEST['do'])=='edit'){ echo $seldata['bus_name']}>$bname</option>";
}
?>
</select>
</td>
</tr>
please give me solution...help me.