Jump to content

Hyperlinks


j3rmain3

Recommended Posts

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/ ( [b]What Can I Out Here To Make Filename Change)[/b] > ".$row[2]."

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
Share on other sites

[quote author=j3rmain3 link=topic=112812.msg458022#msg458022 date=1161877471]
[b]echo "<a href=http://".$row[1].">".$row['3'].";[/b]

[b]But this doesnt change the last section of the url, it just changes the whole url.
[/quote]
that's because you've done http://$variable not http://www.yoursite.com/whatever/$variable
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.