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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -