PDA

View Full Version : Changing a thread's rating via SQL execution


Polo
04-01-2005, 07:03 PM
How would I reset a thread's rating to 0 executing a sql query?

any help would be really appreciated thanks :)

Guy G
04-01-2005, 07:51 PM
UPDATE threadrate SET vote=0 WHERE threadid=x;


Not entirely sure, wait for some more replies.

Polo
04-01-2005, 07:53 PM
ok I will thanks :)

Polo
04-04-2005, 01:45 PM
tried it say it affected 40 rows but the rating still in the thread :( any tips?

tnguy3n
04-04-2005, 04:09 PM
should be this query:
UPDATE thread SET votetotal = '0' WHERE threadid = 'X';