liamloveslearning Posted May 18, 2010 Share Posted May 18, 2010 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 More sharing options...
liamloveslearning Posted May 18, 2010 Author Share Posted May 18, 2010 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 } ?> Link to comment https://forums.phpfreaks.com/topic/202162-broken-else-statement/#findComment-1060114 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.