Jump to content

PHP Image help


d-fraz

Recommended Posts

<a href="/forum/viewthreads.php?question_id="><img src="images/newthread.jpg" alt="newthread" width="100" height="35" border="0" /></a></a></td>

I want that to link to whatever ID it is.

 

EGZAMPLE@@@!

 

This board ID is 9, So the image link should be: newthread.php?question_id=9

 

But all boards are not ID 9. I want it to be whatever ID it is.

 

 

The same thing as:

echo '<a href="/forum/viewthreads.php?question_id=' . $row['id'] . '">'.$row['name'].'</a>'; 

But this is an image link.

Link to comment
Share on other sites

No, Lets forget about row['id']; That's what's wrong.

 

I don't know what to use but maybe you know.

 

I want it when you click the image, it should link you to: newthread.php?question_id=(WhateverID) Now I don't know how you can get that ID when you're linking with a picture.

 

If you know please write it or something.. Thanks a lot :)

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.