bigbird3156
Programmer
I have created an edit record page that has two dropdown menus in it that are populated by another recordset in the database...
when they are populated they display the stored value of the record as the default unless that value has a special character(case in point a designer by the name of 'melly & me')... if it does have a special char then it displays the first value in the database
can anyone give me any ideas of how to fix the following code so that it will recognise the special characters when it is selecting the default value
The Bird from Down Under- Bigbird 3156
when they are populated they display the stored value of the record as the default unless that value has a special character(case in point a designer by the name of 'melly & me')... if it does have a special char then it displays the first value in the database
can anyone give me any ideas of how to fix the following code so that it will recognise the special characters when it is selecting the default value
Code:
<select name="designer">
<?php
do {
?>
<option value="<?php echo $row_designer_files['designer']?>" <?php if (!(strcmp($row_designer_files['designer'], htmlentities($row_edit_products['designer'], ENT_COMPAT, 'utf-8')))) {echo "SELECTED";} ?>><?php echo $row_designer_files['designer']?></option>
<?php
} while ($row_designer_files = mysql_fetch_assoc($designer_files));
?>
</select>
The Bird from Down Under- Bigbird 3156