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
https://forums.phpfreaks.com/topic/225353-db-anchorlink/
Share on other sites

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.