MySQL get value?
#1

removed
Reply
#2

use stored procedure
Reply
#3

Just create a variable which store the peak when server starts, also create a timer and then check if the peak has changed or not. If changed, then update MySQL.
Reply
#4

Try this, not tested but it will work AFAIK :
PHP код:
"update `server`
    set onlineplayerpeak= CASE WHEN `online`+ 1 > onlineplayerpeak THEN `online`+ 1 ELSE onlineplayerpeak END,
    online = online +1" 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)