I have an if statement and I need to check if any of the values are present and if so display it as below:
<? if ($data['Rottcause2']="Asphyxia") or ($data['Rottcause2']="Poison") { ?>
<div id ="f1">
<select name="rottcause" id="opts" onchange="showForm()" >
<option value = "0">Select Option</option>
<option value = "Asphyxia">Asphyxia</option>
<option value = "Poison">Poison</option>
<option value = "Drowning">Drowning</option>
</select>
</div>
<? } else { ?>
nope
<? } ?>
Need some help on the if or bit below as its not working
<? if ($data['Rottcause2']="Asphyxia") or ($data['Rottcause2']="Poison") { ?>