Ehsan_collboy Posted May 18, 2022 Share Posted May 18, 2022 <small class="text-muted">Category:: <?php echo $category;?> Written By <span class="text-dark"><a href="profile.php?username=<?php echo $admin;?>"></a></span> On <?php echo htmlentities($datetime) ?></small> When i apply <a></a> tag on <?php echo $admin ?> on admin variable it show nothing when i check on browser inspect mode admin name show but front view nothing show it only show Written by When i remove the <a> tag $admin variable work fine and show the data on browser Quote Link to comment https://forums.phpfreaks.com/topic/314810-want-some-more-help/ Share on other sites More sharing options...
Barand Posted May 18, 2022 Share Posted May 18, 2022 With <a href="profile.php?username=<?php echo $admin;?>">XXX</a> the bit that is visible in the browser is the text you put where I have XXX https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a Quote Link to comment https://forums.phpfreaks.com/topic/314810-want-some-more-help/#findComment-1596424 Share on other sites More sharing options...
Ehsan_collboy Posted May 19, 2022 Author Share Posted May 19, 2022 i want to print the $admin name on xxx Quote Link to comment https://forums.phpfreaks.com/topic/314810-want-some-more-help/#findComment-1596438 Share on other sites More sharing options...
Barand Posted May 19, 2022 Share Posted May 19, 2022 Then output it there. Quote Link to comment https://forums.phpfreaks.com/topic/314810-want-some-more-help/#findComment-1596445 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.