I want a drop-box to show values of my database but can't get it to work.I'm getting
Notice: Undefined index:.... Call Stack #TimeMemoryFunctionLocation
Here is the dropbox code:
Fabrikat: <br /> <select name="tillverkare_search" id="tillverkare_search">
<option value="" selected="selected">Välj</option>
<?php do { ?>
<option value="<?php echo $row_Fabrikat['Tillverkare']?>" <?php if (!(strcmp($row_Fabrikat['Tillverkare'], $row_Fabrikat['Tillverkare']))) ?>><?php echo $row_Fabrikat['Tillverkare']?></option>
<?php
} while ($row_Fabrikat = mysql_fetch_assoc($Fabrikat)); ?>
</select><br />
And here I defined it with recordset made in Dreamweaver:
mysql_select_db($database_Audiologiska, $Audiologiska);
$query_Fabrikat = "SELECT tillverkare FROM vanster_implantat";
$Fabrikat = mysql_query($query_Fabrikat, $Audiologiska) or die(mysql_error());
$row_Fabrikat = mysql_fetch_assoc($Fabrikat);
$totalRows_Fabrikat = mysql_num_rows($Fabrikat);
The SQL queries works correctly in phpMyAdmin so there is no problem with the SQL query.
My other drop-boxes that has the same function works fine, but I don't know why this one wont work.