Hi there.
I've been using this code for quite some time to delete dead torrents from my tracker. It works great, but I'd like a slight change to be added to it so I can delete certain torrents from a category of my choosing.
The issue I see is in this line: $a = mysql_query("SELECT id, added, size, times_completed, name FROM torrents WHERE UNIX_TIMESTAMP() - UNIX_TIMESTAMP(torrents.last_action) > 1209600");
How does this look: FROM torrents WHERE ????(torrents.category) = 3
The question mark is obviously where I need the helping hand.
The category field has 4 variables; int(10), UNSIGNED, NOT NULL, and a default of 0.
I've been using this code for quite some time to delete dead torrents from my tracker. It works great, but I'd like a slight change to be added to it so I can delete certain torrents from a category of my choosing.
The issue I see is in this line: $a = mysql_query("SELECT id, added, size, times_completed, name FROM torrents WHERE UNIX_TIMESTAMP() - UNIX_TIMESTAMP(torrents.last_action) > 1209600");
How does this look: FROM torrents WHERE ????(torrents.category) = 3
The question mark is obviously where I need the helping hand.
The category field has 4 variables; int(10), UNSIGNED, NOT NULL, and a default of 0.
