Jump to content

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.

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.