Join the forums now, and start posting to receive access to our Scripts Vault!
#2 ip_last //update everypage....
What do you need it for? It seems like it is only causing an additional table write without any real benefit...
Make two user tables, one to store rarely used things (register_ip, email, password) and the playing table (all data that is used after you succesfully login to the game). Very convenient and fast.
For our games we use two fields in the player table register date/time and last login date/time.Upon login we also take the ip and add it to a table called player_loginhistory. This allows us to see trends in when people login, times and what all IP's they used in the past. With just a couple fields in the player table you only get to see a snapshot of the last time they logged in and not a history of logins