d-fraz Posted May 19, 2008 Share Posted May 19, 2008 <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 More sharing options...
BlueSkyIS Posted May 19, 2008 Share Posted May 19, 2008 sort of confused by the question. is this what you want? echo '<a href="/forum/viewthreads.php?question_id=' . $row['id'] . '"><img src="images/newthread.jpg" alt="newthread" width="100" height="35" border="0" /></a>'; Link to comment https://forums.phpfreaks.com/topic/106344-php-image-help/#findComment-545025 Share on other sites More sharing options...
d-fraz Posted May 19, 2008 Author Share Posted May 19, 2008 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 More sharing options...
d-fraz Posted May 19, 2008 Author Share Posted May 19, 2008 Soo does anyone know? Link to comment https://forums.phpfreaks.com/topic/106344-php-image-help/#findComment-545085 Share on other sites More sharing options...
d-fraz Posted May 19, 2008 Author Share Posted May 19, 2008 Any help is GREATLY appreciated. Link to comment https://forums.phpfreaks.com/topic/106344-php-image-help/#findComment-545102 Share on other sites More sharing options...
DarkWater Posted May 19, 2008 Share Posted May 19, 2008 Where are you getting the picture info and echoing it? Show us some more code. Link to comment https://forums.phpfreaks.com/topic/106344-php-image-help/#findComment-545117 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.