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

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -