View Single Post
Old 06-14-2022, 01:26 PM  
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana.
Posts: 661
If statement problem :(

Quote:
<?php if($website) { ?><a href="http://<?php echo $website; ?>" target="<?php echo $name; ?>"><?php echo $name; ?></a><?php } ?>
Any idea why this is removing the $name field completely in addition to the link?

All Im trying to get it to do is still display the name, just remove the href link if no website is included in the DB
__________________
PublisherBucks
Wellness Affiliate Program.
Publisher Bucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote