i've found some hints.
if there're more than one thanks in the "page", it adds only one query. but if there is no thanks at all for the posts of the page, it adds one query per post.
the problem is that you forgot to set $act to be ture after the db query in fetch_thanks()
Quote:
Originally Posted by Abe1
It should only be one. Any way I can have a look around? Do you have the latest version?
|