duncanhall Posted September 26, 2006 Share Posted September 26, 2006 I have a php/mysql photo gallery system that returns all images in the db. Presently, it outputs in the form of: [code]<a href="#"><img src="1.png"></a><a href="#"><img src="2.png"></a><a href="#"><img src="3.png"></a><a href="#"><img src="4.png"></a> ..........[/code]For the sake of cleaner html, I add a \n newline after each image, giving me:[code]<a href="#"><img src="1.png"></a><a href="#"><img src="2.png"></a><a href="#"><img src="3.png"></a><a href="#"><img src="4.png"></a> ..........[/code]which is what I want, but then the images cease to display properly?Any ideas ? Quote Link to comment Share on other sites More sharing options...
HuggieBear Posted September 26, 2006 Share Posted September 26, 2006 Here you've posted the resulting code, can you post your php code, so we can see what's generating this result?RegardsHuggie Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted September 26, 2006 Share Posted September 26, 2006 The difference between those codes you showed is that the user will see a space between the images in example 2, but not in example 1. 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.