You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 195 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - help!!! [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Beretta
Sergeant
Sergeant


Joined: Sep 30, 2005
Posts: 88

Location: Indiana USA

PostPosted: Fri Dec 22, 2006 6:47 am Reply with quoteBack to top

I want this code put in a block but i dont understand how to use the content= phrase could somebody fix this for me? You can view the code active here on the right side.
http://www.truelegitballers.com

Code:

<?php
                   
                   
require('inc/connect.php');
require('inc/setting.php');



mysql_select_db("True2006",$db);

$mysql_query = "SELECT name as n, sum(points/gps) as ppg FROM nl_fullstats GROUP BY n ORDER BY ppg DESC LIMIT 5";

 $st = mysql_query($mysql_query, $db) or die(mysql_error());
$row_st = mysql_fetch_assoc($st);
$totalRows_st = mysql_num_rows($st);
?>
          </strong><strong> </strong></p>
        <div align="center">
          <table width="169" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#006699">
            <tr bgcolor="black">
              <td colspan="2"  align="left"><div align="center"><font size="3"><strong><span class="style3"><font color="red">POINTS</font></span></strong></font></div></td>
            </tr>
            <tr bgcolor="black">
              <td width="68%"  align="left" class="style1"><strong><font color="red" size="3">Name</font></strong></td>
              <td width="32%"  align="center"><strong><span class="style1"><font color="red" size="3">PPG</font></span></strong></td>
            </tr>
            <?php do { ?>
            <tr bgcolor="#FFFFFF">
              <td align="left"><font size="2"><strong><a href="<?PHP echo "http://www.truelegitballers.com/stats/player.php?name=".$row_st['n'].""; ?>"><?php echo $row_st['n']; ?></a></strong></font></td>
              <td align="center"><font size="2"><strong><?php echo round($row_st['ppg'],1); ?></strong></font></td>
            </tr>
            <?php } while ($row_st = mysql_fetch_assoc($st)); ?>
            <?php

mysql_select_db("True2006",$db);

$mysql_query = "SELECT name as n, sum(rebounds/gps) as rpg FROM nl_fullstats GROUP BY n ORDER BY rpg DESC LIMIT 5";

 $st = mysql_query($mysql_query, $db) or die(mysql_error());
$row_st = mysql_fetch_assoc($st);
$totalRows_st = mysql_num_rows($st);
?>
            <tr bgcolor="black">
              <td colspan="2"  align="left"><div align="center"><font size="3"><strong><span class="style3"><font color="red">REBOUNDS</font></span></strong></font></div></td>
            </tr>
            <tr bgcolor="black">
              <td width="68%"  align="left" class="style1"><strong><font color="red" size="3">Name</font></strong></td>
              <td width="32%"  align="center"><strong><span class="style1"><font color="red" size="3">RPG</font></span></strong></td>
            </tr>
            <?php do { ?>
            <tr bgcolor="#FFFFFF">
              <td align="left"><font size="2"><strong><a href="<?PHP echo "http://www.truelegitballers.com/stats/player.php?name=".$row_st['n'].""; ?>"><?php echo $row_st['n']; ?></a></strong></font></td>
              <td align="center"><font size="2"><strong><?php echo round($row_st['rpg'],1); ?></strong></font></td>
            </tr>
            <?php } while ($row_st = mysql_fetch_assoc($st)); ?>
            <?php

mysql_select_db("True2006",$db);

$mysql_query = "SELECT name as n, sum(assist/gps) as apg FROM nl_fullstats GROUP BY n ORDER BY apg DESC LIMIT 5";

 $st = mysql_query($mysql_query, $db) or die(mysql_error());
$row_st = mysql_fetch_assoc($st);
$totalRows_st = mysql_num_rows($st);
?>
            <tr bgcolor="black">
              <td colspan="2"  align="left"><div align="center"><font size="3"><strong><span class="style3"><font color="red">ASSISTS</font></span></strong></font></div></td>
            </tr>
            <tr bgcolor="black">
              <td width="68%"  align="left" class="style1"><strong><font color="red" size="3">Name</font></strong></td>
              <td width="32%"  align="center"><strong><span class="style1"><font color="red" size="3">APG</font></span></strong></td>
            </tr>
            <?php do { ?>
            <tr bgcolor="#FFFFFF">
              <td align="left"><font size="2"><strong><a href="<?PHP echo "http://www.truelegitballers.com/stats/player.php?name=".$row_st['n'].""; ?>"><?php echo $row_st['n']; ?></a></strong></font></td>
              <td align="center"><font size="2"><strong><?php echo round($row_st['apg'],1); ?></strong></font></td>
            </tr>
            <?php } while ($row_st = mysql_fetch_assoc($st)); ?>
            <?php

mysql_select_db("True2006",$db);

$mysql_query = "SELECT name as n, sum(block/gps) as bpg FROM nl_fullstats GROUP BY n ORDER BY bpg DESC LIMIT 5";

 $st = mysql_query($mysql_query, $db) or die(mysql_error());
$row_st = mysql_fetch_assoc($st);
$totalRows_st = mysql_num_rows($st);
?>
            <tr bgcolor="black">
              <td colspan="2"  align="left"><div align="center"><font size="3"><strong><span class="style3"><font color="red">BLOCKS</font></span></strong></font></div></td>
            </tr>
            <tr bgcolor="black">
              <td width="68%"  align="left" class="style1"><font color="red" size="3"><strong>Name</strong></font></td>
              <td width="32%"  align="center"><strong><span class="style1"><font color="red" size="3">BPG</font></span></strong></td>
            </tr>
            <?php do { ?>
            <tr bgcolor="#FFFFFF">
              <td align="left"><font size="2"><strong><a href="<?PHP echo "http://www.truelegitballers.com/stats/player.php?name=".$row_st['n'].""; ?>"><?php echo $row_st['n']; ?></a></strong></font></td>
              <td align="center"><font size="2"><strong><?php echo round($row_st['bpg'],1); ?></strong></font></td>
            </tr>
            <?php } while ($row_st = mysql_fetch_assoc($st)); ?>
          </table>
Find all posts by BerettaView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.118 Seconds - 188 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::