View Single Post
(#2 (permalink))
Old
quantumkev is Offline
Private
Points: 197, Level: 2 Points: 197, Level: 2 Points: 197, Level: 2
Activity: 0% Activity: 0% Activity: 0%
quantumkev is an unknown quantity at this point
 
 
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Dec 2007
December 26th, 2007

I'm not sure about how one would do this in PHP, but I know that in other languages such as VB and C#, I would accomplish this by using ADO and returning a recordset object from the MySQL db. Then, I would read through the recordset in a loop, keeping track of the number of records read so far, and print whatever I wished to print at the desired counts - preferrably, they would be multiples, so the condition would be easy to check for.