<table width="100%"> <tr> <td class="header2">Random Game</td> </tr> <tr> <td class="content2"><?php$r = $db->query(sprintf('SELECT * FROM dd_games ORDER BY rand() LIMIT 0,1'));echo '<table width=\'100%\' border=\'0\' align=\'center\'> <tr> </tr>';$count = 0;while($in = $db->fetch_row($r)){$gamename = ereg_replace('[^A-Za-z0-9]', '', $in['name']); if($seo_on == 1){ $playlink = ''.$domain.'/play/'.$in['ID'].'-'.$gamename.'.html'; }else{ $playlink = ''.$domain.'/index.php?action=play&ID='.$in['ID'].''; }if($count%2==0){ echo '<tr> <td width=\'50%\' valign=\'top\'> <table width=\'100%\' border=\'0\'> <tr> <center><a href=\''.$playlink.'\'><b>'.$gamename.'</b></a></center><br /> <td width=\'55\' height=\'55\' valign=\'top\'> <a href=\''.$playlink.'\'> '; if($in['type'] == 1){ echo ' <center><img src=\''.$domain.'/'.$thumbsfolder.'/'.$in['thumb'].'\' width=\'50\' width=\'50\' border=\'1px solid #444444\'></center>'; }else{ echo ' <center><img src=\''.$in['thumburl'].'\' width=\'50\' width=\'50\' border=\'1px solid #444444\'></center>'; } echo ' </a> </td></tr> </table></td> ';}else{ echo '';}$count++;}echo "</table>";?> </td> </tr> </table>
<table width="100%"> <tr> <td class="header2">Random Game</td> </tr> <tr> <td class="content2"><?php$r = $db->query(sprintf('SELECT * FROM dd_games ORDER BY rand() LIMIT 0,1'));echo '<table width=\'100%\' border=\'0\' align=\'center\'> <tr> </tr>';$count = 0;while($in = $db->fetch_row($r)){$gamename = $in['name']; if($seo_on == 1){ $playlink = ''.$domain.'/play/'.$in['ID'].'-'.$gamename.'.html'; }else{ $playlink = ''.$domain.'/index.php?action=play&ID='.$in['ID'].''; }if($count%2==0){ echo '<tr> <td width=\'50%\' valign=\'top\'> <table width=\'100%\' border=\'0\'> <tr> <center><a href=\''.$playlink.'\'><b>'.$gamename.'</b></a></center><br /> <td width=\'55\' height=\'55\' valign=\'top\'> <a href=\''.$playlink.'\'> '; if($in['type'] == 1){ echo ' <center><img src=\''.$domain.'/'.$thumbsfolder.'/'.$in['thumb'].'\' width=\'50\' width=\'50\' border=\'1px solid #444444\'></center>'; }else{ echo ' <center><img src=\''.$in['thumburl'].'\' width=\'50\' width=\'50\' border=\'1px solid #444444\'></center>'; } echo ' </a> </td></tr> </table></td> ';}else{ echo '';}$count++;}echo "</table>";?> </td> </tr> </table>
<?php echo '<ul class=\'catmenu\'>'; $tur = $db->query('SELECT username, userid, plays, avatarfile FROM dd_users ORDER BY plays DESC LIMIT 0,15'); while($r = $db->fetch_row($tur)){ echo ' <li><img src="avatars/'.$r['avatarfile'].'" height="15" width="15" /> '.$r['username'].' - ('.$r['plays'].')</li>'; } echo ' </ul>'; ?>
Wow. You guys are the most helpful guys I know, and that's surprising to find, especially with a free script that just started recently.
echo '<img src="avatars/'.$variable1['avatarfile'].'" height="15" width="15" />';
<?php$tur = $db->query('SELECT * FROM dd_users LIMIT 0,5');while($r = $db->fetch_row($tur)){echo '<img src="avatars/'.$r['avatarfile'].'" height="15" width="15" />';} //end while?>
<?php$id=$_GET['id'];$tur = mysql_query("SELECT * FROM dd_users WHERE userid='$id'");while($r = mysql_fetch_array($tur)){echo '<img src="avatars/'.$r['avatarfile'].'" height="15" width="15" />';} //end while?>
....$highscore=$sql[highscore];while(){if($highscore>15){//Gold}if($highscore>10){//silver}if($highscore>5){//bronze}
<?phpecho '<ul class=\'catmenu\'>'; $tur = $db->query('SELECT * FROM dd_users ORDER BY plays DESC LIMIT 0,15');while($r = $db->fetch_row($tur)){echo '<li>';$plays=$r[plays];if($plays>15){//Gold}if($plays>10){//silver}if($plays>5){//bronze}echo ' '.$r['username'].' - ('.$r['plays'].')</li>';}echo '</ul>';?>