| 1234567891011121314 |
- <?php
- class stats {
- public function __construct() {
- $this->db = new db();
- }
- public function log($clientIP,$ip,$action,$token) {
- $dbAction = $this->db->prepare("INSERT IGNORE INTO stats (clientip,ip,action,token) VALUES (?,?,?,?)");
- $dbAction->bind_param('iiss',$clientIP,$ip,$action,$token);
- return $dbAction->execute();
- }
- }
|