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. Quote Link to comment 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>'; Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
d-fraz Posted May 19, 2008 Author Share Posted May 19, 2008 Soo does anyone know? Quote Link to comment Share on other sites More sharing options...
d-fraz Posted May 19, 2008 Author Share Posted May 19, 2008 Any help is GREATLY appreciated. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.