Here is my code for populating data into dropdown
list from mysql database
<select name="robes">
<?php
$result = mysql_query("SELECT * FROM robes ORDER BY Classement ASC")or die(mysql_error());
while ($row = mysql_fetch_array($result)) {
$color = $row["color"];
?>
<option value="<? echo $row['Id_robe']; ?>"><? echo $color;?></option>
<?php
}?>
</select>
now my problem that there is no data shown and no error message also.
Can you please check if php short tag is enabled? Or Use full php tag like
<?php instead of <?
First check Short tag
open or not in php.ini
if not then SET
short_open_tag=On
but better is to use
<select name="robes">
<?php
$result = mysql_query("SELECT * FROM robes ORDER BY Classement ASC")or die(mysql_error());
while ($row = mysql_fetch_assoc($result)){
?>
<option value="<?php echo $row['Id_robe'];?>"><?php echo $row["color"];?></option>
<?php
}
?>
</select>