j3rmain3 Posted October 26, 2006 Share Posted October 26, 2006 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 Codingecho "<a href=http://absoluteurl/[b] ( What Can I Put Here To Make The Filename Change ) [/b]>".$row[2]."</a>I have been trying to figure it out but nothing seems to work.Most sites show[b]echo "<a href=http://".$row[1].">".$row['3'].";[/b]But this doesnt change the last section of the url, it just changes the whole url.Help ???Thanks,j3rmain3 Link to comment https://forums.phpfreaks.com/topic/25185-hyperlinks/ Share on other sites More sharing options...
fenway Posted October 26, 2006 Share Posted October 26, 2006 Just prepend the fixed path.... I'm not sure I understand your question. Link to comment https://forums.phpfreaks.com/topic/25185-hyperlinks/#findComment-114933 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.