troubleshooting Question

php loops

Avatar of doctorbill
doctorbillFlag for United Kingdom of Great Britain and Northern Ireland asked on
PHP
3 Comments1 Solution282 ViewsLast Modified:
I have the following php loop which is working fine on my page:
-------------------------------------------
<?php
                $i = "1";      
                      
        do {
              ?>
      <input type="checkbox" name="pa_it<?php echo $row_orders['ID']; ?>_<?php echo $i; ?>" value="1" class="flip" checked="checked"  />&nbsp;<?php echo $i; ?>

      <?php $i++;} while ($i <= 21 ) ?>
-------------------------------------------

What I need is the following:
1. to introduce a <br> tag when $i is 7 and 14
2. to only check the boxes when a variable is set. I haven't as yet decided on this variable but if someone could give me an idea of what to do I would be very grateful

Bill
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros