$username Posted January 18, 2008 Share Posted January 18, 2008 Hello all, I am trying to get this code to display correctly. I know that I must have the html incorrectly. Can some one let me know what I am doing wrong with the code. <li><a href=\"{.$row506['HistoryAccountNumber'].}\">{.$row506['HistoryAccountNumber'].}</a></li> <?PHP echo "<h2>Recently Viewed</h2> <ul class=\"sidemenu\"> <li><a href=\"{.$row506['HistoryAccountNumber'].}\">{.$row506['HistoryAccountNumber'].}</a></li> </ul> <h2>Links</h2> <ul class=\"sidemenu\"> <li><a href=\"/\"></a></li> </ul> <h2>Sponsors</h2> <ul class=\"sidemenu\"> </ul> </div>"; ?> thank you, Brett Quote Link to comment https://forums.phpfreaks.com/topic/86682-solved-question-about-php-with-html-format/ Share on other sites More sharing options...
papaface Posted January 18, 2008 Share Posted January 18, 2008 Try: <?php echo '<h2>Recently Viewed</h2> <ul class="sidemenu"> <li><a href="'.$row506['HistoryAccountNumber'].'">'.$row506['HistoryAccountNumber'].'</a></li> </ul> <h2>Links</h2> <ul class="sidemenu"> <li><a href="/"></a></li> </ul> <h2>Sponsors</h2> <ul class="sidemenu"> </ul> </div>'; ?> Quote Link to comment https://forums.phpfreaks.com/topic/86682-solved-question-about-php-with-html-format/#findComment-442991 Share on other sites More sharing options...
$username Posted January 18, 2008 Author Share Posted January 18, 2008 thanks that helped Quote Link to comment https://forums.phpfreaks.com/topic/86682-solved-question-about-php-with-html-format/#findComment-443001 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.