I have a PHP file that is ran every so often to delete old rows of data. Inside the PHP file I have example.
mysql_query("DELETE FROM table1 where timeout < $timestamp");
The problem I notice lately since I have about 11 of those lines for 11 different tables ran all at once every so often.
I now notice more lines I add it won’t delete the rows on certain tables. If I run it manually like this
DELETE FROM table1 where timeout < 1337143007
It will delete the old rows fine. So am I missing something am I running Delete From on to many tables at once?
Thank you
The only possible culprit here seams to be your
$timestamp.Try to echoing/log the query as you run-it and you’ll probably find the culprit.