I've got 2 images, 1 is supposed to present at all times, and the 2nd one is only to appear when the user meets a certain criteria.
For some reason, if the users have less then the minimum points i've set the one that is supposed to be present at all times doesn't appear. Both appear only when the user has met the criteria for the number of points. To my knowledge i can't understand what's wrong. Hoping you guys could help out and thank you in advance for taking the time to help.
Code: Select all
<div class="about_txt"> <span style="float:right;"><a href="#" onclick="startGateway('Mjc4Njg%3D');"><img src="images/earn_points.jpg" width="195" height="100" border="0" /></a><br />
<?php if ($pointsneeded <= 0){?>
<a href="request.php"><img src="images/claim_voucher.jpg" width="195" height="100" border="0" /></a>
<?php } ?>