Raised This Month: $ Target: $400
 0% 

help with sql


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 08-25-2009 , 13:52   Re: help with sql
Reply With Quote #7

PHP Code:
<head>
<center>
<body bgcolor="#666666"><font face="Verdana">
<title>Deathrun Shop Stats v3.1.1</title>
<link rel="shortcut icon" href="http://www.crazyeffect.net/tutyX/favicon.ico">
</head>

<?php
    
echo "<div class='center'><img src='http://www.crazyeffect.net/tutyX/drmanager.gif'></div>";

    
$dbUsername "";
    
$dbPassword "";
    
$db "";
    
    
mysql_connect(localhost$dbUsername$dbPassword);
    
mysql_select_db($db) or die("[DrShop] An error has occured!");
    
    
$result mysql_query("SELECT * FROM DeathrunShop_sql");
    
$rcount mysql_num_rows($result);
    
    echo 
"<br><table border='1' cellspacing='0' width='90%' style='text-align: center;'><tr><th>Name</th><th>SteamID</th><th>Shop Points</th></tr>";

    for(
$i=0$i<$rcount$i++)
    {
        
$resultName mysql_result($result$i"name");
        
$resultSteamID mysql_result($result$i"steamid");
        
$resultPoints mysql_result($result$i"points");
        
    
        echo 
"<tr><td><u>$resultName</u></td><td>$resultSteamID</td><td><b>$resultPoints</b></td></tr>";
    }

    echo 
"</table>";
    echo 
"<br><br><br>Deathrun Shop v3.1.1 by tuty (c)";

?>

</center>
</body>
</font>
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode