<?php 
include "../koneksi.php";
$data = mysqli_query ($koneksi, " select 
                                        DetailEkspedisi_ID,
                                        EkspedisiID,
                                        Sopir,
                                        NoPolisi,
                                        NoHP
                                from 
                                detailekspedisi 
                                where EkspedisiID = '$_GET[ekspedisi]'");

?>

<th>NAMA SOPIR</th>
<td>
<select id="detail_ekspedisi" name="detail_ekspedisi">
		<option selected></option>
		<?php 
		while ($row = mysqli_fetch_array ($data))
		{
		?>
		<option value="<?php echo  $row['DetailEkspedisi_ID']; ?>"><?php echo $row['Sopir']; ?></option>
		<?php } ?>
	</select>
	<p style="color:red" id="error_detail_ekspedisi"></p>
</td>