PHP Countdown - How Do i use Else If for hours when there is less than 1 day left
<p>I need some php help</p>

<p>here is my code  </p>

<pre><code>&lt;?php
    // Define your target date here
    $targetYear  = get_theme_option('episode_countdown_year');
    $targetMonth = get_theme_option('episode_countdown_month');
    $targetDay   = get_theme_option('episode_countdown_day');
    $targetHour  = 21;
    $targetMinute= 00;
    $targetSecond= 00;
    date_default_timezone_set ( "America/New_York" );
    // Sets the default time zone, in this case GMT -08

    $dateFormat = ( "Y-m-d H:i:s" );
    // Check the PHP Documentation for date uses.
    $targetDate = mktime (
                $targetHour,
                $targetMinute,
                $targetSecond,
                $targetMonth,
                $targetDay,
                $targetYear
    );
    // Sets up our timer
    $actualDate = time();
    // Gets the actual date
    $secondsDiff = $targetDate - $actualDate;
    // Finds the difference between the target date and the actual date
    // These do some simple arithmatic to get days, hours, and minutes out of seconds.
    $remainingDay    = floor ( $secondsDiff / 60 / 60 / 24);
    $remainingHour    = floor ( ( $secondsDiff - ( $remainingDay
                *60 * 60 * 24) ) / 60 / 60 );
    $remainingMinutes = floor ( ( $secondsDiff - ( $remainingDay
                *60 * 60 * 24) - ( $remainingHour * 60 * 60 ) ) / 60 );
    $remainingSeconds = floor ( ( $secondsDiff - ( $remainingDay
                *60 * 60 * 24) - ( $remainingHour * 60 * 60 ) ) -
                ( $remainingMinutes * 60 ) );

    $targetDateDisplay = date($dateFormat,$targetDate);
    $actualDateDisplay = date($dateFormat,$actualDate);
    // Sets up displays of actual and target
    ?&gt;
       &lt;?php if( $targetDate &gt; $actualDate ) {?&gt;  
        description: '&lt;?php echo $remainingDay; ?&gt; Day(s) / &lt;?php echo $remainingHour; ?&gt; Hour(s) / &lt;?php echo $remainingMinutes; ?&gt; Minute(s) Left..',
        picture: '&lt;?php echo $my_url ?&gt;/cache/image-&lt;?php echo $remainingDay; ?&gt;-d.png'
              &lt;?php } else { ?&gt;
        description: 'Now Showing!',
              picture: '&lt;?php echo $my_url ?&gt;/image-now.php'
       &lt;?php } ?&gt;
</code></pre>

<p>my question is</p>

<p>How can I add the else if code, if there is less than 1 day left</p>

<p>so I can hide the remainingDay, so only the hours and minutes are showing</p>

<p>I tried this but that didnt work</p>

<pre><code>&lt;?php } else if( $remainingDay &lt; $actualDate ) {?&gt;
</code></pre>
