El Ornitorrico Posted December 15, 2006 Share Posted December 15, 2006 I am making a portfolio for my aunt. It's quite lovely, [url=http://www.wvcweb.com/web2fall06/harline/KR/index.php]see?[/url] But try the blog page. You'll probably notice something: the content isn't where it should be. Quite annoying, don't you think? Well I agree. When I saw this error, I immediately thought I screwed up some tags. Not so. I decided I should try it in Dreamweaver. Dreamweaver puts the table inside of the content just dandy, so I uploaded that. [url=http://www.wvcweb.com/web2fall06/harline/KR/blog1.php]Didn't work.[/url] The next obvious step is to preview the file. Worries confirmed: Dreamweaver displays it correctly, the browser shows it all funky. Not only that, you see that there is a P tag just above the table which displays correctly. [code]<?php$page_title = "Karyn Rondeau: Blog";include("includes/header.inc.html");include("includes/dbinfo.inc.php");$query="SELECT * FROM karyn";$result=mysql_query($query);$num=mysql_num_rows($result);mysql_close();echo "<b><center>Database Output</center></b><br /><br />"; //This prints correctly?><p>This is a test. //This prints correctly After this P tag is the table where it starts screwing up</p><table border="0" cellspacing="2" cellpadding="2"><tr><th><font face="Arial, Helvetica, sans-serif">Subject</font></th> //These print<th><font face="Arial, Helvetica, sans-serif">Date</font></th><th><font face="Arial, Helvetica, sans-serif">Blog</font></th></tr><?php$i=0;while ($i < $num){ $subject=mysql_result($result,$i,"subject"); $date=mysql_result($result,$i,"date"); $blog=mysql_result($result,$i,"blog"); ?> <p>This is a test <?php echo $i; ?></p> //This will actually print ABOVE the subject date and blog headers on the first print <tr> <td><font face="Arial, Helvetica, sans-serif"><? echo $subject; ?></font></td> //These three print <td><font face="Arial, Helvetica, sans-serif"><? echo $date; ?></font></td> <td><font face="Arial, Helvetica, sans-serif"><? echo $blog; ?></font></td> </tr> </table> <?php $i++;}include("includes/footer.inc.html");?>[/code] Quote Link to comment Share on other sites More sharing options...
Hypnos Posted December 15, 2006 Share Posted December 15, 2006 You don't have an opening table tag before <tr>. Quote Link to comment Share on other sites More sharing options...
El Ornitorrico Posted December 15, 2006 Author Share Posted December 15, 2006 Erm... Yes I do.<table border="0" cellspacing="2" cellpadding="2">Is before the TRs. UPDATE:I had a problem with the close table tag, is now fixed, however it didn't change the problem any. UPDATE:There was an incomplete table thingy in the header that Fireworks put in there when I made the buttons. Go figure. Quote Link to comment 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.