i want to delete some records daily from the DB. to do this i am going to use cron. i upload files to server via net to the webserver. here how can i use cron to do the deletion??? can u please explain?? are u understand now??
i want to delete some records daily from the DB. to do this i am going to use cron. i upload php files to server via net to the webserver. here how can i use cron to do the deletion??? can u please explain?? are u understand now??
Well firstly work out the sql for deteting the records, and save a php file similar to : <? include("db.php"); // assuming you have a database connection ... mysql_query("DELETE from `table` WHERE id < '$whatever'"); ?> then use cron to execue that script daily ....
ya ok but i am in one place.the server is in another place. i dont know how to use cron. i have created a php file to delete the records (example:delrec.php). now what is the procedure to do cron?