Each condition must have a different output. When it is tested it keeps outputting template1, what am I doing wrong now?
<? if ($tempstyle='adrian') {
$tempstyle='template1'; }
else{
if ($tempstyle='john') {
$tempstyle='template2'; }
}
echo $tempstyle; ?>