gsencan Posted August 23, 2011 Share Posted August 23, 2011 echo '<div class="gamename">'.$values[0].'</div>'; echo '<div class="gameimage"><a href="'.$values[3].'"><img src="'.$values[1].'"></a></div>'; NOW i want 2nd echo under 1st echo. I tried every single <br> combination but no luck Also my 2nd question is: my image and link is a variable, it displays the image but there is something wrong with link. Variable is just like this www.mydomain.com\image\blabla.php but it shows link as==> www.mydomain.com\ instead of what i wrote above. Quote Link to comment https://forums.phpfreaks.com/topic/245489-line-break/ Share on other sites More sharing options...
WebStyles Posted August 23, 2011 Share Posted August 23, 2011 slashes for links should be forward slashes and not back slashes. echo '<br />'; will insert a line break, but since you're using css, you may not see it. type in that code, execute it then go check the page's source code to see if the break is there. or put it inside one of the divs, before your link: echo '<div class="gameimage"><br /><a href="'.$values[3].'"><img src="'.$values[1].'"></a></div>'; hope this helps Quote Link to comment https://forums.phpfreaks.com/topic/245489-line-break/#findComment-1260882 Share on other sites More sharing options...
gsencan Posted August 23, 2011 Author Share Posted August 23, 2011 i put it inside <div> it worked ty. Actually it is a part of your php code which you gave me in a help topic about flatfile database Quote Link to comment https://forums.phpfreaks.com/topic/245489-line-break/#findComment-1260900 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.