|
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.
|