html - Link PHP inside an echo tag -
i having problem code
<?php echo '<div class="post_note2"> <b>'.$lang['renew_success'].'</b></div><br /><span class="orange"><b><a href="?view=main">home</a>|<a href="<?php echo $adurl; ?>">view ad</a></b></span>'; } }?>
for reason when view ad link clicked doesn't build , still contains php code in link rather link actual ad page. issue echo in echo ? i'm sure isn't quite difficult solve have been trying far long on own , cant it. thanks, great.
you had right in first part of string. can't have , echo statement inside of echo statement. use concatenation throughout string:
<a href="' . $adurl . '"
Comments
Post a Comment