Our Scripts Vault contains many game scripts that you can use to create your own game!
CREATE TABLE `user_logs` ( `log_id` int(11) NOT NULL auto_increment, `user_id` int(11) NOT NULL, `user_name` varchar(255) NOT NULL, `action_type` varchar(255) NOT NULL, `opponent_id` int(11) NOT NULL, `time` varchar(255) NOT NULL, PRIMARY KEY (`log_id`), KEY `user_id` (`user_id`,`opponent_id`)) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
the problem with doing something like that, is if you have 50 active users, all making at least 10 attacks an hour, if all users stay on for 2 hours you have already got 1000 logs in your filei dont know about yourself but i was told not to use flat files for more than 100 records?
Its important to remember that 99.99% of log file entries will never ever need to be examined.