Jump to content


Photo

Hyperlinks


  • Please log in to reply
1 reply to this topic

#1 j3rmain3

j3rmain3
  • Members
  • PipPipPip
  • Advanced Member
  • 40 posts

Posted 26 October 2006 - 03:03 PM

I have created the DB, the table shows up fine, the link appears but its destination is wrong.

The first section is an absoulte url so it doesnt need to change, but i need the last bit of the url (the filename) to change depending on what has been put into the database.

Hyperlink Coding

echo "<a href=http://absoluteurl/ ( What Can I Put Here To Make The Filename Change ) >".$row[2]."</a>

I have been trying to figure it out but nothing seems to work.

Most sites show

echo "<a href=http://".$row[1].">".$row['3'].";

But this doesnt change the last section of the url, it just changes the whole url.

Help  ???

Thanks,
j3rmain3

#2 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 26 October 2006 - 05:44 PM

Just prepend the fixed path.... I'm not sure I understand your question.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users