Layout is like this for the table.
Table name "categories'
id | category | count
I have like 10 categories
Example :
internet
hosting
hosting-tools
Ok now lets say i have a member that listed a link and he chose internet for the category his link will be posted in.
So the count for internet increases by one
Now lets say i want to change his category
I would change it to hosting-tools
Now the category hosting-tools would increase by one
Now the problem :
I still have the category "internet' with a count of one.
I can't figure out how to update them both , cause no matter what i try, i can't seem to hold on to the old category id to subtract one from the count.
I hope someone can help me, not sure how else to explain this.