miowebdesigns Posted January 21, 2011 Share Posted January 21, 2011 I want to display thumbnails for a picture gallery and when user clicks on image the larger image opens in a new window. I can't find a straight answer on the php.net website. Can someone help? Quote Link to comment https://forums.phpfreaks.com/topic/225259-display-images/ Share on other sites More sharing options...
requinix Posted January 21, 2011 Share Posted January 21, 2011 You're probably looking at the wrong website. Try this one. Quote Link to comment https://forums.phpfreaks.com/topic/225259-display-images/#findComment-1163351 Share on other sites More sharing options...
jcbones Posted January 21, 2011 Share Posted January 21, 2011 That is because this would be HTML not PHP. <a href="http://full/path/to/image" target="_blank"><img src="thumbnail/image.jpg" alt="my thumbnail" border="0"/></a> . Quote Link to comment https://forums.phpfreaks.com/topic/225259-display-images/#findComment-1163353 Share on other sites More sharing options...
miowebdesigns Posted January 22, 2011 Author Share Posted January 22, 2011 I know how to do it with HTML. I am looking to do the same thing with PHP code. Quote Link to comment https://forums.phpfreaks.com/topic/225259-display-images/#findComment-1163377 Share on other sites More sharing options...
QuickOldCar Posted January 22, 2011 Share Posted January 22, 2011 then you... echo "<a href='http://full/path/to/image' target='_blank'><img src='thumbnail/image.jpg' alt='my thumbnail' border='0'/></a>"; Quote Link to comment https://forums.phpfreaks.com/topic/225259-display-images/#findComment-1163389 Share on other sites More sharing options...
litebearer Posted January 22, 2011 Share Posted January 22, 2011 you mean like this?... http://www.nstoia.com/sat/disp_pag/ Quote Link to comment https://forums.phpfreaks.com/topic/225259-display-images/#findComment-1163424 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.