ChrisMartino Posted September 22, 2010 Share Posted September 22, 2010 Hey there, Thanks for reading this thread. I've come across a problem where I cannot get the text to echo properly upon retrieval from the database, here is a example; Now this is where I echo the text: function ListPosts($PageLimit) { $Posts = mysql_query("SELECT * FROM posts"); while($Post = mysql_fetch_array($Posts)) { echo("<div class=\"art-Post\"> <div class=\"art-Post-tl\"></div> <div class=\"art-Post-tr\"></div> <div class=\"art-Post-bl\"></div> <div class=\"art-Post-br\"></div> <div class=\"art-Post-tc\"></div> <div class=\"art-Post-bc\"></div> <div class=\"art-Post-cl\"></div> <div class=\"art-Post-cr\"></div> <div class=\"art-Post-cc\"></div> <div class=\"art-Post-body\"> <div class=\"art-Post-inner\"> <h2 class=\"art-PostHeader\">{$Post['post_subject']}</h2> <div class=\"art-PostContent\"> <p>{$Post['post_contents']}</p> </div> <div class=\"cleared\"></div> </div> <div class=\"cleared\"></div> </div> </div>"); } } Quote Link to comment https://forums.phpfreaks.com/topic/214110-echoing-text-leaves-div-containers/ Share on other sites More sharing options...
Adam Posted September 22, 2010 Share Posted September 22, 2010 What wrong with it exactly, that it's poking over the edge? If so that's not a PHP problem. The word's just too large to fit... Quote Link to comment https://forums.phpfreaks.com/topic/214110-echoing-text-leaves-div-containers/#findComment-1114143 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.