Jump to content

Cant get table to show up in HTML area


nander

Recommended Posts

Here is my code.

 

$display_block .= "

    <P>Showing posts for the <strong>$topic_title</strong> topic:</p>

 

<table width=100% cellpadding=3 cellspacing=1 border=1>

    <tr>

    <th>AUTHOR</th>

<th>POST</th>

    </tr>";

 

while ($posts_info = mysql_fetch_array($get_posts_res)) {

$post_id = $posts_info['post_id'];

$post_text = nl2br(stripslashes($posts_info['post_text']));

$post_create_time = $posts_info['fmt_post_create_time'];

$post_owner = stripslashes($posts_info['post_owner']);

 

//add to display

$display_block .= "

    <tr>

<td width=35% valign=top>$post_owner<br>[$post_create_time]</td>

<td width=65% valign=top>$post_text<br><br>

<a href=\"replytopost.php?post_id=$post_id\"><strong>REPLY TO

POST</strong></a></td>

</tr>";

}

 

//close up the table

$display_block .= "</table>";

}

?>

<html>  

<head>

<title>Posts in Topic</title>

</head>

<body>

<h1>Posts in Topic</h1>

<?php print $dislplay_block; ?>

</body>

</html>

 

Link to comment
https://forums.phpfreaks.com/topic/252174-cant-get-table-to-show-up-in-html-area/
Share on other sites

This might be a good time to mention that you need to have php's error_reporting set to E_ALL (or even better a -1) and display_errors set to ON in your master php.ini so that php will help you by reporting and displaying all the errors it detects. You will save a TON of time.

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.