I have been thru this a little before. Someone posted code that I am now trying to use while retrieving information from a MySQL DB into an HTML SELECT element. The code is supposed to check the value from the related table field and print selected in the <OPTION> tag so the info will be displayed as the default item in the box.
The code as I have ammended is:
<option <?php echo $state=='AL'?'selected':'';?> value="AL">Alabama</option>
Am I doing this the right way because the info is not showing up. Could it be the ' instead of "?
Richard