if statement in email body
I have tried adding the following to my email body, however it does not work.
<?php if ($row_Recordset2['client1_title'] ==1){
echo "Ms";
} elseif ($row_Recordset2['client1_title'] ==2){
echo "Mrs";
} elseif ($row_Recordset2['client1_title'] ==3){
echo "Miss";
} elseif ($row_Recordset2['client1_title'] ==4){
echo "Mr";}?>
If I just echo the record set I see a value, however with the if statement, nothing is shown.
Is this possible?