Very nice, I was looking for something like this and then this showed up
Thanks Megiddo. I have a question though:
I was looking through the code, because what I want to do is have one database with times for all our servers. The idea is that we then add a little bit of script into our forums that retrieves a player's total time spent to sex it up a bit. In any case, I looked through the code and I'm confused.
sql.QueryRow( "SELECT totaltime, lastvisit FROM utime WHERE player = " .. uid .. ";" )
I understand that this fetches the total time spent for the player, but nowhere do I see a require( "mysql" ) statement. Nor do I see an sql setup anywhere. As such, I suppose I have 2 questions:
1) What is the function of the SQL queries?
2) How can I edit this to work off a central database? I imagine the queries can be used as-is, but I still haven't figured out what database they're transmitting to.
Thanks in advance,