<p> <b>Status:</b><?php echo $SubscriptionStatus; ?> </p> <p> <b>Valid Until:</b> <?php if ($fldSubscribe == '2') { //Trial Time Left $time_left = $func->GetAprilTrialTimeLeft($fldAddDate); } else { if ($fldSubscribe == '1') { //Subscription Time Left $time_left = $func->GetSubscriptionTimeLeft($fldLastPaymentDate); } else { if ($fldSubscribe == '0') { //Inactive Time Left $time_left = "0 Days"; } } } echo $time_left; ?> </p>