Advertisement
Guest User

Untitled

a guest
May 30th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.99 KB | None | 0 0
  1. <?php get_header( );?>
  2.  
  3.      <p><?php if( user( ) ): echo '<a href="/boards.php?new&forum=' . $forum_row['forum_id'] . '">New Thread</a>'; else: echo 'Only members can post. <a href="/register.php">Join?</a>'; endif; ?></p>
  4.  
  5.      <h2><a href="/boards.php">Boards</a> / <?php echo $forum_row['forum_name']; ?></h2>
  6.  
  7. <?php
  8.  
  9.  while( $thread_row = mysql_fetch_array( $thread_select ) ) {
  10.  
  11.   $thread_id = $thread_row['thread_id'];
  12.  
  13.   $reply = mysql_query( "SELECT `user_id` FROM `jammy_reply` WHERE `thread_id` = '$thread_id'" ) or die( mysql_error( ) ); if( mysql_num_rows( $reply ) > 0 ): $row = mysql_fetch_array( $reply )  echo "     <span style=\"float: right\">last reply by " . $row['user_id'] . "</span>";  endif;
  14.  
  15.   echo "     <p><a href=\"/boards.php?thread=" . $thread_row['thread_id'] . "\">" . $thread_row['thread_subject'] . "</a> posted by " . user_data( 'alias', $thread_row['user_id'] ) . ", " . time_since( $thread_row['thread_date'] ) . "</p>\n";
  16.  
  17.  }
  18.  
  19. ?>
  20.  
  21. <?php get_footer( ); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement