Problem with the Coding - I need the answer

Discussion in 'HTML & Website Design' started by suresh981, Feb 24, 2010.

  1. #1
    Hey I have a problem?

    The code below is not working with windows PHP (IIS 7) but it is working with Linux environment PHP. Anybody tell me why is that problem? But when i put the if condition inside the tag td it is working. Do you have resolution to
    this problem

    <?php if($rowdet['aaaddress']=='') { } else { ?>
    <tr>
    <td background="images/logo2_Layer 1.png" class="tdccolor">Address:</td><td><?php echo $rowdet['aaaddress']." "; if ($rowdet['aaaddress2']=='') { } else { echo $rowdet['aaaddress2']." "; } if ($rowdet['aaaddress3']=='') { } else { echo $rowdet['aaaddress3']."<br>"; } if ($rowdet['state']=='') { } else { echo $rowdet['state'].", "; } if ($rowdet['city']=='') { } else { echo $rowdet['city']."-"; } if ($rowdet['pincode']=='') { } else { echo $rowdet['pincode']; } ?></td></tr>
    <? } ?>
     
    suresh981, Feb 24, 2010 IP
  2. AlternativeWeb

    AlternativeWeb Peon

    Messages:
    140
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    AlternativeWeb, Feb 24, 2010 IP