AUTOMATIC DELETED Every 12am

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    AUTOMATIC DELETED Every 12am

    All old shout, unread pm, log are automatic deleted every 12am. anyone can code this?
    LESS TALK. LESS MISTAKE.

    HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

    #2
    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'");

    I think that should work...
    whatmp3.name - search mp3 on mobile

    Comment


      #3
      Here php will not work unless you have a member in the site who will run the php code.
      You will need cron for it, sample code for 12am

      PHP Code:
      12 * * * /path/page.php 

      Comment

      Working...
      X