franknu Posted May 16, 2007 Share Posted May 16, 2007 i want to have the image a link here is my code <? for ( $i = 0; $i < 1; $i++ ); { echo "<td align=\"center\"><img src=\""; echo $pics[$i]; echo "\" width=\"375\" height=\"257\">"; } ?> How can i turn the image into a link Quote Link to comment https://forums.phpfreaks.com/topic/51749-making-a-shuffle-a-link/ Share on other sites More sharing options...
hitman6003 Posted May 16, 2007 Share Posted May 16, 2007 Just like you make any other link...put in inside an anchor tag... <? for ( $i = 0; $i < 1; $i++ ) { echo '<td align="center"><a href="nextpage.php"><img src="' . $pics[$i] . '" width="375" height="257" border="0"></a></td>'; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/51749-making-a-shuffle-a-link/#findComment-254920 Share on other sites More sharing options...
franknu Posted May 17, 2007 Author Share Posted May 17, 2007 thanks Quote Link to comment https://forums.phpfreaks.com/topic/51749-making-a-shuffle-a-link/#findComment-254973 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.