This is your fifth post here, use code tags. It is shouted at you at the very instant you try to post a comment. In the background of the text box, in the required reading to post on the forums and in the rules of the forums.
When you don't use code tags it makes the code extremely hard to read, thereby making your problem harder to solve. Most people just skip the post if there is no code tags and for good reason.
ShawnCplus
Code Monkey
1,583 posts since Apr 2005
Reputation Points: 526
Solved Threads: 268
Jakx - you posted this problem on another thread and then started a new one. What's going on??
Looks like this is your prob:
if ($total<0) as it should be if ($total>0)
AFAIK a the number of returned records from a query can't be less than 0.
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080