Hi all, Let me start by saying that I am pretty much a total newbie when it comes to scripting etc, SO I think what I am trying to do is most likely very simple, I just can't get my head around it :D
So, here is the situation.
I'm working on a website idea of mine that is similar to the likes of Digg/Reddit in that the content is 'rated' up or down by the users.
What I want to do is this.
Create an automated script/cron job that will check the database for any content with a rating lower than say.. -25 and delete it. This will hopefully mean that any trash that gets voted way down will just get deleted =)
The problem, I have no idea where to begin with this script.
I think I am right in saying that I can set up the cron job in cPanel, I just point it to the script and set the time, right?
After that.. I have no idea.
Some extra info..
The database is set up like so :
table : DBName --> rash_quotes --> rating
Thanks in advance for any help :D
So, here is the situation.
I'm working on a website idea of mine that is similar to the likes of Digg/Reddit in that the content is 'rated' up or down by the users.
What I want to do is this.
Create an automated script/cron job that will check the database for any content with a rating lower than say.. -25 and delete it. This will hopefully mean that any trash that gets voted way down will just get deleted =)
The problem, I have no idea where to begin with this script.
I think I am right in saying that I can set up the cron job in cPanel, I just point it to the script and set the time, right?
After that.. I have no idea.
Some extra info..
The database is set up like so :
table : DBName --> rash_quotes --> rating
Thanks in advance for any help :D