php - Refresh database and delete entry -


i made database consists of field [id, name, lastname, time] there function refresh database after 22h , delete data deleted database.

it web application reserving tables @ club. , reservation lasts 22 hours, after that, cleared , table becomes free.

you need cron job runs every 5 minutes. search net on how run php cron jobs.

you need php script have delete query identify database rows has time > 22 hours.

delete table_name time > now() - interval 22 hours 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -