Original geschrieben von z0oL
PHP:<?PHP $id = time(); $del = $id - 10; mysql_select_db("$db"); $sql = "DELETE FROM table WHERE id < '$del'"; mysql_query($sql) or die("Error" . mysql_error(); ?>
Nee!
so:
PHP:
<?php
$id = time();
$del = $id - 10;
mysql_select_db("$db");
$sql = "DELETE FROM table WHERE id < '$del'";
mysql_query($sql) or die("Error" . mysql_error());
?>