Page 1 of 1

Problem with my first loop

Posted: Wed Oct 15, 2014 2:22 pm
by SICHTA0811
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.

Code: Select all

    <?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";
	}
    ?>