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
https://forums.phpfreaks.com/topic/106344-php-image-help/
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
https://forums.phpfreaks.com/topic/106344-php-image-help/#findComment-545036
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.