$r = $db->fetch_row($ir);if(isset($_POST['commentsubmit'])){ $commenter = $usrdata['userid']; $gameid = $ID; $comment = clean($_POST['comment']); $date = time(); if($autoapprovecomments == 1){ $approved = 1;
$r = $db->fetch_row($ir);if(isset($_POST['commentsubmit'])){ $commenter = $usrdata['userid']; if ($commenter == '') { $commenter = 'Guest';}; $gameid = $ID; $comment = clean($_POST['comment']); $date = time(); if($autoapprovecomments == 1){ $approved = 1;
$rra = $db->fetch_row($db->query(sprintf('SELECT username FROM dd_users WHERE userid=\'%u\'', $row['commenter']))); echo ' <tr> <td width=\'30%\' class=\'content5\' style=\'padding:4px;\' valign=\'top\'><b>Posted By:</b> '.$rra['username'].'</td> <td valig=\'top\' class=\'content5\'>'.$row['comment'].'</td>
$rra = $db->fetch_row($db->query(sprintf('SELECT username FROM dd_users WHERE userid=\'%u\'', $row['commenter']))); if ( $row['commenter'] == '0' ) {$commenter='Guest';} else {$commenter=$rra['username'];}; echo ' <tr> <td width=\'30%\' class=\'content5\' style=\'padding:4px;\' valign=\'top\'><b>Posted By:</b> '.$commenter.'</td> <td valig=\'top\' class=\'content5\'>'.$row['comment'].'</td>