'; print ''; print '' . $row[2] . ''; print ''; print ''; print '' . $row[1] . ''; print ''; // if game has comments set to "public", show them (also show them if user is viewing own game) if($row[3] == 1 || $row[1] == $userName) { print 'Comments'; $querystrC = mysql_escape_string('SELECT CompoEntrant.BoardName, CompoComments.Comments FROM CompoComments, CompoEntrant WHERE CompoComments.GameID = ' . $entryID . ' AND CompoEntrant.ID = CompoComments.PosterID ORDER BY CompoComments.PostDate ASC'); $resultsetC = mysql_query($querystrC, $dbconnect); while($rowC = mysql_fetch_row($resultsetC)) { print 'posted by ' . $rowC[0] . ''; print '' . $rowC[1] . ''; } } // must be logged in to comment if($userIDKey == '' || $userIDKey < 0) { print 'You must log in to leave comments.'; } else { if($row[1] == $userName) { // can't leave comment on own game } else { print 'Add Comment'; } } print ''; include 'dbdisconn.php'; include 'pagefooter.php'; } ?>