PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Okay, I have a blog on my site and I am using a a type of templete and I have to blog file included on my main page.. Well, When I have more then one post it doesn't put the blog tables in the correct place.. I have included the blog's code in this post and here is the site that I am having the problem with..
Hmmm, pretty hard to debug code you didn't write, especially for an entire website. I don't have much time, but I took a picture with all the tables outlined. (Firebird Rules!)
makes debugging HTML near on impossible - there are no line breaks or other formatting to make it possible to read and so when you view source you get things like this:
<!-- BLOG GOES HERE -->
<table cellspacing="0" cellpadding="0" border=0><tr><td width="100" align="left" valign="top" style="padding: 5px"><span class="subjectheader"><img src="/site/images/bullet.gif" align="left"><i><b>testing yet again</b></i></span><br><font size="1"><span class="timeheader"><i>Monday, January 19th, 2004</i></span></font></td><td width="375" bgcolor=000000 align="left" valign="top" style="border-top: solid 1px #516382; border-bottom: solid 1px #516382; border-left: solid 1px #516382; border-right: solid 1px #516382; padding: 5px"><img src="/site/images/bullet.gif" align="left"><i>Well, My last post didn't go where it needed to so I will see where this one goes</i><br><br><i>--Stephen</i></td></tr></table><div align="right"><a href="/site/blog/comments.php?id=00005"><font size="1"><i>Post Comment</i></font></a></div><br>
<td width="375" bgcolor=000000 align="left" valign="top" style="border-top: solid 1px #516382; border-bottom: solid 1px #516382; border-left: solid 1px #516382; border-right: solid 1px #516382; padding: 5px"><img src="/site/images/bullet.gif" align="left"><i>This is another test to see if this will work with the table I have set up.. Thanks</i><br><br><i>--Stephen</i></td></tr></table><div align="right"><a href="/site/blog/comments.php?id=00004"><font size="1"><i>Post Comment</i></font></a></div><br>
<td width="375" bgcolor=000000 align="left" valign="top" style="border-top: solid 1px #516382; border-bottom: solid 1px #516382; border-left: solid 1px #516382; border-right: solid 1px #516382; padding: 5px"><img src="/site/images/bullet.gif" align="left"><i>testing</i><br><br><i>--Stephen</i></td></tr></table><div align="right"><a href="/site/blog/comments.php?id=00003"><font size="1"><i>Post Comment</i></font></a></div><br>
<table cellspacing="0" cellpadding="0" border=0><tr><td width="100" align="left" valign="top" style="padding: 5px"><span class="subjectheader"><img src="/site/images/bullet.gif" align="left"><i><b>Incomplete Site</b></i></span><br><font size="1"><span class="timeheader"><i>Friday, January 16th, 2004</i></span></font></td><td width="375" bgcolor=000000 align="left" valign="top" style="border-top: solid 1px #516382; border-bottom: solid 1px #516382; border-left: solid 1px #516382; border-right: solid 1px #516382; padding: 5px"><img src="/site/images/bullet.gif" align="left"><i>Well, Apparently my blog is in working order lol.. <br />
My site is still being worked on, Altho it is coming along nicely I still have alot of work to complete on it.. I'm sorry for taking so long But I have been trying a few different appproces to the design of the site including Flash among others.. Thank you and check back soon for the completed site, Also post me a comment if you think I should Include a Flash Intro to my site?</i><br><br><i>--Stephen</i></td></tr></table><div align="right"><a href="/site/blog/comments.php?id=00002"><font size="1"><i>Post Comment</i></font></a></div><br>
<!--BLOG ENDS HERE!!-->
Best thing you can do is either break out of the PHP to go into the HTML or use heredoc (here document) format - then you can format the HTML to see what's going on.