No, Simon just e-bullies me.
May've got that wrong.PHP Code:$time = date("H:i");
if($time == "00:00"){
$query = mysql_query("TRUNCATE TABLE `table_name` ;");
}

No, Simon just e-bullies me.
May've got that wrong.PHP Code:$time = date("H:i");
if($time == "00:00"){
$query = mysql_query("TRUNCATE TABLE `table_name` ;");
}
Last edited by lolwut; 01-11-2007 at 08:00 PM.
i've been here for over 8 years and i don't know why
<?php
include "config.php"; // config file
$query = mysql_query("TRUNCATE TABLE `table_name` ;");
?>
go into cPanel.
Go to cron jobs, put the command as:
wget http://www.site.com/myfile.php
Then set the time to everyday at 00:00 of every week of every month of every year.
Humm, how do you do it so it deletes say:<?php
include "config.php"; // config file
$query = mysql_query("TRUNCATE TABLE `table_name` ;");
?>
go into cPanel.
Go to cron jobs, put the command as:
wget http://www.site.com/myfile.php
Then set the time to everyday at 00:00 of every week of every month of every year.
the data in 00:00 etc..?
you set the cron to run the file at the time you want it delete and also
Simon why are u so up your self?
Just because someone else helped more then you.
I made it so that it deletes them, but also re adds them at the same time![]()
Want to hide these adverts? Register an account for free!