Jump to content

Display Link Content Need Help


szkgroove

Recommended Posts

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>

Link to comment
https://forums.phpfreaks.com/topic/269625-display-link-content-need-help/
Share on other sites

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.

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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.