if($comments_on == 1){ $r = $db->query(sprintf('SELECT * FROM dd_comments WHERE gameid=\'%u\' AND approved=\'1\' ORDER BY date DESC LIMIT 3', $ID)); while($row = $db->fetch_row($r)){ $date = date('d-m-Y', $row['date']); $rra = $db->fetch_row($db->query(sprintf('SELECT username FROM dd_users WHERE userid=\'%u\'', $row['commenter']))); $useridl=$row['userid']; $urlp = ''.$domain.'/index.php?action=showprofile&profile='.$useridl ; if ( $row['commenter'] == '0' ) {$commenter='Guest';} else {$commenter=$rra['username'];}; echo '<b>Posted By:</b> <a href="'.$urlp.'">'.$commenter.'</a>';
if($comments_on == 1){$r = $db->query(sprintf('SELECT * FROM dd_comments WHERE gameid=\'%u\' AND approved=\'1\' ORDER BY date DESC LIMIT 3', $ID));while($row = $db->fetch_row($r)){$date = date('d-m-Y', $row['date']);$rra = $db->fetch_row($db->query(sprintf('SELECT username FROM dd_users WHERE userid=\'%u\'', $row['commenter'])));$useridl=$row['commenter'];$urlp = ''.$domain.'/index.php?action=showprofile&profile='.$useridl ;if ( $row['commenter'] == '0' ) {$commenter='Guest';} else {$commenter=$rra['username'];};echo '<b>Posted By:</b> <a href="'.$urlp.'">'.$commenter.'</a>';
$useridl=$row['userid'];
$useridl=$row['commenter'];
if($comments_on == 1){ $r = $db->query(sprintf('SELECT * FROM dd_comments WHERE gameid=\'%u\' AND approved=\'1\' ORDER BY date DESC LIMIT 3', $ID)); while($row = $db->fetch_row($r)){ $date = date('d-m-Y', $row['date']); $rra = $db->fetch_row($db->query(sprintf('SELECT username FROM dd_users WHERE userid=\'%u\'', $row['commenter']))); $useridl=$row['userid']; $urlp = ''.$domain.'/index.php?action=showprofile&profile='.$useridl.''; if ( $row['commenter'] == '0' ) {$commenter='Guest';} else {$commenter=$rra['username'];}; echo '<b>Posted By:</b> <a href="'.$urlp.'">'.$commenter.'</a>';
if($comments_on == 1){$r = $db->query(sprintf('SELECT * FROM dd_comments WHERE gameid=\'%u\' AND approved=\'1\' ORDER BY date DESC LIMIT 3', $ID));while($row = $db->fetch_row($r)){ $date = date('d-m-Y', $row['date']); $rra = $db->fetch_row($db->query(sprintf('SELECT username,avatarfile FROM dd_users WHERE userid=\'%u\'', $row['commenter']))); $useridl=$row['userid'];if($row['avatarfile']){ $useravatar=$row['avatarfile'];}else{$useravatar="default.jpg";} $urlp = ''.$domain.'/index.php?action=showprofile&profile='.$useridl.'';if ($row['commenter'] == 0){$commenter='Guest';}else{$commenter=$rra['username'];};echo '<b>Posted By:</b> <a href="'.$urlp.'">'.$commenter.'<br /><img src="'.$domain.'/avatars/$useravatar" /></a>';