blob: bc38deaf7fb1cc2bd856a3fbea40fa64a415e040 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<?php
//Identifiants SQL
define('DBHOST','localhost');
define('DBUSER','xxxxxxxxxx');
define('DBPASS','xxxxxxxxxxxxxxx');
define('DBNAME','xxxxxxxxxx');
//Connexion SQL
$db = new PDO("mysql:host=".DBHOST.";port=8889;dbname=".DBNAME, DBUSER, DBPASS);
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stmt = $db->query('DELETE FROM xbt_announce_log WHERE mtime < (NOW() - INTERVAL 59 MINUTE)');
?>
|