vendredi 29 avril 2016

Unexpected else

I am grappling with the error:

unexpected 'else' (T_ELSE) i

My code is:

<div class="ship_amt">
<?php if(!empty($custarea)){ ?>
    <a>
     Minimum Order Amount -
     <?php 
        echo $areaMinAmt;
     ?>
    </a>
    <?php} ?>
    <?php else { ?>
    <a>
        Choose area to know min delivery amount
    </a>                                                            
    <?php }?>
</div>

What am I doing wrong?

Aucun commentaire:

Enregistrer un commentaire