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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.