Folks,
I have a table that is called via the echo statement in php depending on variables in a MYSQL database. I can echo the menu/list, but need the list to display the data within the field partner_gender
<td><select name="select" id="partner_gender">
<option value="0" {if (!(strcmp(0, $partner_gender))) {"SELECTED"} }>Gender</option>
<option value="m" {if (!(strcmp("m", $partner_gender))) {"SELECTED"} }>Male</option>
<option value="f" {if (!(strcmp("f", $partner_gender))) {"SELECTED"} }>Female<option>
</select>
So how do I get the php if and variables to work within the other php echo statement?
Any ideas?