PHP Developers Network
http://forums.devnetwork.net/

Problem with my first loop
http://forums.devnetwork.net/viewtopic.php?f=1&t=140422
Page 1 of 1

Author:  SICHTA0811 [ Wed Oct 15, 2014 2:22 pm ]
Post subject:  Problem with my first loop

The Idea of the loop is to count how many days are missing to reach the omer. Omer is a Party, that party is in the day 49, no more, no less. The system have to show me how many days are missing and in the case that we reach the day 49, the system will say The omer is over.

Syntax: [ Download ] [ Hide ]
    <?php
    $days = 0;
    $omer = 0;
   
        While($days < 49) {
            $omer = $days + 1;
            $omer = 49;
            }
            if ($days < 49) {
                $omer = $days + 1;
                echo "Hoy es el dia". " ". $omer. " ". "del Omer";
            }    
            else {
                echo "Ya se acabo el omer";
        }
    ?>

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/