Hi guys, this is still wrecking my head.
Here's my if else statements again...
echo '<p>Centr:'.$row['centralised_priced'].'</p>';
echo '<p>Fund:'.$row['fund_of_fund'].'</p>';
$centralised_priced = ($row['centralised_priced'] == 'Yes') ? 'checked' : 'unchecked';
echo '<h1>1)'.$centralised_priced.'</h1>';
$fund_of_fund = ($row['fund_of_fund'] == 'Yes') ? 'checked' : 'unchecked';
echo '<h1>2)'.$fund_of_fund.'</h1>';
Prints off...
Centr:Yes
Fund:No
1) Unchecked
2) Unchecked
And my DB Table...
fund_of_fund CHAR 10
centralised_priced CHAR 10
Any ideas on why this doesnt work?