All old shout, unread pm, log are automatic deleted every 12am. anyone can code this?
AUTOMATIC DELETED Every 12am
Collapse
X
-
In table something_settings add deldate
Add this code to index.php:
PHP Code:$date = mysql_fetch_array(mysql_query("SELECT value FROM something_settings WHERE name='deldate'"));
$today = date("m.d.y");
$hour = date("H");
if ($date!==$today && $hour>11)
{
# DELETE WHAT YOU WANT TO DELETE...
mysql_query("UPDATE something_settings SET value='".$today."' WHERE name='deldate'");
}
whatmp3.name - search mp3 on mobile
Comment