• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Fragers.php Problem For TFS 1.0

CesarZ

Well-Known Member
Joined
Sep 20, 2012
Messages
272
Solutions
4
Reaction score
66
I have this error comming from my php
55.JPG
This is the php.
Code:
<?php require_once 'engine/init.php'; include 'layout/overall/header.php'; ?>
<h2>Top PVP Players</h2>
<?php
$getfrags = mysql_query("SELECT `frags`, `level`, `name` FROM `players` ORDER BY `frags` DESC");
$fetchfrags = mysql_fetch_assoc($getfrags);
foreach($fetchfrags as $frags)
{
    echo '<table border="0">
    <tr class="yellow"><td>Player</td><td>Level</td><td>Frags</td></tr>';
    echo '<tr><td>';
    echo '<a href="characterprofile.php?name='.$frags['name'].'">'.$frags['name'].'</a>';
    echo '</td><td>';
    echo $frags['level'];
    echo '</td><td>';
    echo $frags['frags'];
    echo '</td></tr>';
    echo '</table>';
}
?>
<?php include 'layout/overall/footer.php'; ?>



I went to my phpmyadmin and check my players SQL to see if it has a "frag" base and it doesn't. I think that the fragers.php has to pick up a "frag" numbers from the player section in order to work.

Now... if i add the frag bar in players section would the server be able to provide me with numbers of frags once a players start killling other players, or do I have to make a lua so it can send each player frag to that "frag" section in MYSQL?

If i just have to add the frag send me the SQL Query please!
Thanks for your help.
 
Last edited:
Back
Top