1. Visagalis submitted a new resource:

    SQLStats - Automatically logs various server events to MySQL database

    Read more about this resource...
     
  2. This is a wonderful plugin, very powerful. I've been testing it on my server and it is working extremely well.

    Our stats are here:
    [EU] BEST - European Rust Server

    Want a list of players on your website that build the most on your server?

    Connect to your SQL database -
    Code:
    <?php
    $servername = "localhost";
    $username = "sqldatabaseusername";
    $password = "sqldatabasepassword";
    $dbname = "sqldabasename";// Create connection
    $conn = new mysqli($servername, $username, $password, $dbname);
    // Check connection
    if ($conn->connect_error) {
         die("Connection failed: " . $conn->connect_error);
    }
    ?>
    Select specific sql data - create table -
    Code:
    <table><thead>
    <tr>
    <th data-column-id="name">Name</th>
    <th data-column-id="kills" data-type="numeric">Building Parts Created</th>
    </tr>
    </thead>
    <tbody>
                     
    <?php
    $sql = "SELECT name, SUM(count) FROM q_PlayerBuilds GROUP BY name ORDER BY SUM(count) DESC LIMIT 25";
    $result = $conn->query($sql);if ($result->num_rows > 0) {
    // output data of each row
    while($row = $result->fetch_assoc()) {
    echo "<tr><td>".$row["name"]."</td><td>".$row["SUM(count)"]."</td></tr>";
    }
    echo "</tbody>";
    echo "</table>";
    } else {
    echo "0 results";
    }
    ?>
    </div>
    Kill connection to sql -
    Code:
    <?php
    $conn->close();
    ?>
    
     
    Last edited by a moderator: Dec 21, 2015
  3. Visagalis updated SQLStats with a new update entry:

    1.0.2

     
  4. This looks great!
     
  5. I'd be happy if people who are using this plugin, could give links to their websites which displays statistics taken by this plugin, so I could show them as example of what could be achieved using this plugin.
    You don't need to share website sources, just a website link.
     
  6. Давно ждал подобного плагина, спасибо автору!
     
  7. Added our site to the example above.
     
  8. Thanks, added your site to Working examples.
     
  9. You should incude a sample webpage for us!
     
  10. That thing is WIP. Meanwhile you can check post by antisoma.
     
  11. Ahh ok thanks!
    [DOUBLEPOST=1450701613][/DOUBLEPOST]This is great, this could be the new stats plugin as the other one is outdated!
     
  12. @Visagalis If the support for NoSQL Database is getting implemented will you think about a NoSQL Solution of this plugin ?
     
  13. Seems AWESOME, though about the example... I ain't so good at working that out. Any tips where to get help coding own page n/or just adding those tables. I can fix somekinda crappy htlm page myself :D

    Ps. Yeah this probably don't belong here..
     
  14. Is someone willing to help me setup stats on my website, i have a website but i want to add it to a page. If i uploaded the php file would you be able to help thanks!
     
  15. Visagalis updated SQLStats with a new update entry:

    1.0.2b

     
    Last edited by a moderator: Dec 21, 2015
  16. Was the varchar length too short before ?
     
  17. yeah, seems like some weapons have name with over 32 characters, i have no idea which :D
     
  18. Maybe weapons WITH holosight and silencer