Re: [Liz1001] Display Button for more if paid record
Hi Liz,
It looks right, but for records that were created _before_ you added that field they'll have a value of null (or blank) for "level". You can actually just test the variable by itself to see if it contains a value that isn't zero or blank. Try this instead:
<?php if ($record['level']): ?>
<a href="<?php echo $record['_link'] ?>"><img src="images/more_information.jpg" width="109" height="26" hspace="40" vspace="10" /></a>
<?php else: ?>
Sign Up
<?php endif ?>
If that doesn't work, have a look to see what the value is for level with this debugging code:
Level value is '<?php $record['level'] ?>'<br/>
Let me know if that works for you!
Dave Edis - Senior Developer
interactivetools.com