Jump to content

Echoing text leaves div containers.


ChrisMartino

Recommended Posts

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;

 

23u76l4.png

 

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>");
	}
}

 

Link to comment
https://forums.phpfreaks.com/topic/214110-echoing-text-leaves-div-containers/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.