Jump to content

Way to insert code after so many items display in a loop


msaz87

Recommended Posts

I'm looking to see if there's a way you can have a statement that says "after X items displayed in a loop, display this code"... so if the loop was going to pull 10 things out of a DB and I wanted something display after every 4 items, it would just go:

 

--DB ENTRY 1--

--DB ENTRY 2--

--DB ENTRY 3--

--DB ENTRY 4--

 

--"CODE"--

 

--DB ENTRY 5--

--DB ENTRY 6--

--DB ENTRY 7--

--DB ENTRY 8--

 

--"CODE"--

 

--DB ENTRY 9--

--DB ENTRY 10--

 

Thanks for the help!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.