<?php if($range == 'arizona'): ?>
<?php echo $image->county; ?>
<?php endif; ?>
Ok, so this code is working, and the echo output is : “arizona”
Now I would like to replace the ‘arizona’ on the first line, using the echo. I tried :
<?php if($range == $image->county;): ?>
<?php echo $image->county; ?>
<?php endif; ?>
But not working. How can I include :
$image->county;
In the first line ?
Remove the semicolon from your
ifexpression: