Hi there is anybody knows how to skip my loop but not a break.

for () {
if ($xxDate <= $date) {
break; it shoul be skip then nextcounter will loop---->
} else if ($xxDate >= $date) { echo "Inserting ......<br>";
}

Thanks

    Then I have no clue what you mean. Example?

      Originally posted by milo_pantig
      nope just a skip for the next counter

      Still sounds like continue to me.

        yes its like continue.. just only skipping the array loop

        what i create is this !

        if ($LastDate <= $date) {
        $dateSwitch = 0;
        } elseif ($xxDate >= $date) {
        $dateSwitch = 1;
        }
        switch ($dateSwitch) {
        case 0:
        break;
        case 1:
        inserting into database .....
        }

          Write a Reply...