a little confused. i understand this code:
echo "<a href=\"$row['LinkTarget']\">$row['LinkText']</a>";
but what i want is this.
the link button are as follows. A1, A2, A3, A4, A5, A6, A7 etc. these will be pulled from the database depending on what button is pressed. (there is also B1, B2, B3 etc.) now these buttons are also links to information that will appear in the row below. so A1 is a link for A1 information and so on up until A7.
i hope i am explaining this correctly. i have got the table for the buttons as follows:
CREATE TABLE link2text (
id MEDIUMINT NOT NULL AUTO_INCREMENT,
linkbutton VARCHAR(3) NOT NULL,
linktarget VARCHAR(50) NOT NULL,
linktitle VARCHAR(30) NOT NULL,
linktext TEXT NOT NULL,
PRIMARY KEY (id)
)
linkbutton is the A1, A2....., A7. all these need to be in on row. not just A1 but all up to A7. these buttons will point to the target in linktarget to get the relative text in linktext.
i hope i have said this properly.