szkgroove Posted October 18, 2012 Share Posted October 18, 2012 Hello, need help with this code, I want to display content of this link on single page This is back link, so I want user to have this content on the bottom of page, so it does not need to click to get where previously was. I appreciate any help Thanks </a> <strong>»</strong> </font><a href="catbrowser.php?qcatid=<?=$value['gcategoryid']?>" class="backToLink"> <?=$value['catname']?> </a> Quote Link to comment https://forums.phpfreaks.com/topic/269625-display-link-content-need-help/ Share on other sites More sharing options...
Christian F. Posted October 18, 2012 Share Posted October 18, 2012 OK, put it at the bottom? Quote Link to comment https://forums.phpfreaks.com/topic/269625-display-link-content-need-help/#findComment-1386010 Share on other sites More sharing options...
szkgroove Posted October 18, 2012 Author Share Posted October 18, 2012 Nope, it just display name of cat and id, no content, also tried with echo but same thing Quote Link to comment https://forums.phpfreaks.com/topic/269625-display-link-content-need-help/#findComment-1386018 Share on other sites More sharing options...
premiso Posted October 18, 2012 Share Posted October 18, 2012 This is just funny, but sad at the same time. How are we expected to help not knowing your application and it is to be used. You need to post relevant sections of the code and we can help. Alternatively, you can just use javascript for a back button. Quote Link to comment https://forums.phpfreaks.com/topic/269625-display-link-content-need-help/#findComment-1386026 Share on other sites More sharing options...
krisw44 Posted October 18, 2012 Share Posted October 18, 2012 I can see the problem with your code as it is written. The correct code would be: <a href="catbrowser.php?qcatid=<?php echo $value['gcategoryid']; ?>" class="backToLink"> <?php echo $value['catname']; ?> </a> That said, without knowing the context of the variables and such I have no idea if it will do what you want it to do. Quote Link to comment https://forums.phpfreaks.com/topic/269625-display-link-content-need-help/#findComment-1386036 Share on other sites More sharing options...
Christian F. Posted October 18, 2012 Share Posted October 18, 2012 I recommend that you read this article, it'll explain our points quite nicely. Quote Link to comment https://forums.phpfreaks.com/topic/269625-display-link-content-need-help/#findComment-1386038 Share on other sites More sharing options...
premiso Posted October 18, 2012 Share Posted October 18, 2012 I can see the problem with your code as it is written. The correct code would be: Not really, sure, that is a "better" method as it does not rely on PHP Version 5.4> and or short_open tags to be on in < 5.4, but as long as he has the open tags enabled or is running 5.4, that code he posted is just fine. Quote Link to comment https://forums.phpfreaks.com/topic/269625-display-link-content-need-help/#findComment-1386052 Share on other sites More sharing options...
szkgroove Posted October 19, 2012 Author Share Posted October 19, 2012 Thanks for reply, echo $value did the job, and works just fine. I apologize for not complied with the forum rules and gave the complete code Greetins Quote Link to comment https://forums.phpfreaks.com/topic/269625-display-link-content-need-help/#findComment-1386244 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.