There are a number of looping constructs available within PHP and without much of a prompt in the first post we can't be very specific in helping you. However here are some starting points which might be useful:
- while
while (condition) { statements }
- do-while
do { statements } while (condition)
- for
for (start; loop_start; loop_end) { statements }
- foreach
foreach (items as item) { statements }