Think it might be best if I just show you the code.
while ($row = mysql_fetch_array($enheder)) {
echo"<tr>
<td> " .$row['Model'].
"<td> " .$row['SN'].
"<td> " .$row['Softwarever'].
"<td> " .$row['KobtDato'].
"<td> " .$row['Saelger'].
"<td> " .$row['ServiceDato'];
$dato = mysql_query("SELECT * FROM Servicetxt WHERE Servicenum IN ($where);")
or die(mysql_error());
?><form>
<select name="dato"><?
while ($datorow = mysql_fetch_array($dato)) {
if ($datorow['Servicenum'] == $row['ID1']) {
?>
<option value="something">something</option>
<?
}
?></select>
</form><?
}
echo "<td> " .$row['CalDato'].
"<td> " .$row['KundeID'].
"<td> " .$row['ID1'].
"<td> " .$row['KundeRefNo'];
}
Sorry but I can't post screenshots apparently, I'll just have toexplain it. It acts weird if there is more than two options - instead of putting the options in the drop down, it just prints all the options right below an empty drop down. If there is only one option, it works perfectly fine. But why? This might be some simple silly mistake, but it's 05.46 in the morning here and I haven't slept for a long time now :D please help.