Print stuff from database
I have a database which is called player_player. In that database i have following.
Username | Steam id | Kills | Deaths | Headshots | Points I have a plugin which prints out my points like this: [SERVERNAME] Your points 1000 I would like it to print out more stuff like kills & deaths but dont have a clue how to. PHP Code:
PHP Code:
I have tryed following. But it prints out wrong number, that numbers doesnt exist in database so what am i doing wrong and how to fix it? PHP Code:
|
Re: Print stuff from database
Quote:
also that plugin doesn't print your points from the database, instead it prints the amount of entries in the table that have more points than you |
Re: Print stuff from database
Dont really understand what you are saying but...
For example. If i edit the code to this: There is a table called kills. PHP Code:
But when it prints out it to the server it says 2. Whats the error? |
Re: Print stuff from database
Ok now i understand how it works.
Player 1: 0 kills Me: 7 kills. Player 3: 14 kills. It prints out 2 because it counts the place im in. So instead of this i would just like to print out my actual kills. Any help? |
Re: Print stuff from database
Never mind solved it.
|
| All times are GMT -4. The time now is 04:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.