Jump to content

broken else statement


Recommended Posts

Hi everyone, Ive got this else statement which I cant seem to work, dreamweaver is showing my <td> in black so I guess the code cant go in the place I have it, Could anybody advise me on this code?

 

        <?php   
           $timeStmp=mktime($row_rsworksorders1['intraartapproval']);
if($timeStmp+1209600 < time())
{
<tr class="<?php echo @$cnt1++%2==0 ? "" : "KT_even"; ?>">
}
else
{
<tr class="<?php echo @$cnt1++%2==0 ? "" : "KT_even"; ?>">
} ?>

Link to comment
https://forums.phpfreaks.com/topic/202162-broken-else-statement/
Share on other sites

NVM, couldnt see the forest for the trees!

 

           
        <?php   
           $timeStmp=mktime($row_rsworksorders1['intraartapproval']);
if($timeStmp+1209600 < time())
{ ?>
<tr class="<?php echo @$cnt1++%2==0 ? "" : "KT_even"; ?>">
<?php }
else
{ ?>
<tr class="<?php echo @$cnt1++%2==0 ? "" : "KT_even"; ?>">
<?php } ?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.