Jump to content

Recommended Posts

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]
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. 
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.