Jump to content

DB Anchorlink


matvespa

Recommended Posts

I retrive my output from database and i have 3 result to show. However, at the top of the page, i created a anchorlink to link to each of the result being displayed below.

 

I tried creating a new column in the db structure and call it "anchorlink". However, it is only able to work on the first result. For example, when i click anchorlink1: it correctly show me the result1 below. When i click anchorlink2 and 3, it doesnt show me result3 and 3 respectively. In fact it showed me result1 as well. Here is my achorlink code:

 

 

anchorlink1:
<a href="#HPTB">LINK1</a>

anchorlink2:
<a href="#SM">LINK2</a>

anchorlink3:
<a href="#LE">LINK3</a>

 

HPTB, SM and LE are the anchorlink input in the database which column is called "anchorlink".

 

Display Output:
<a name='<?php echo $anchorlink; ?>'></a>

 

Is there anything wrong with this code above? Cause it doesnt get what i want and what am i missing? Thank you in advance!

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.