20.09.2018, 19:28
Quote:
That's how i wanna make it. I don't wanna use my accounts table for showing server stats.
That's why i made a separate serverstats table. I just need to fix that. Code is in the first post, any help is accepted. |
Not only is it much easier than creating a seperate table and keep the data in sync, it's also consistent and just a query. You can extend this system as you add new columns or saved data to the users table and just extend the query for retrieving them, instead of having a seperate system just for stats.
Admin Logs or Actions are a different thing.
But if you really want the server stats to be seperated for whatever reason, the error you have in your first post is caused by an empty table, or at least zero retrieved rows.
Quote:
(number of rows: '0') |