in reply to Re: Counting fields from database (updated)
in thread Counting fields from database

Thanks for this. I've updated my regex with what you suggested. You're right, mine was too simple.

I used this example from someone else below and it works, but I still have to query the database twice. I can't seem to figure out how to do it in one loop, but it works. I loop through to count the total threads, then loop through again to print the rows.

  • Comment on Re^2: Counting fields from database (updated)