Welcome Guest, Not a member yet? Register   Sign In
comparison condition is not true
#1

[eluser]alberta[/eluser]
hello,

I am using parse. On view page i've this code.

Code:
<?php
     if( ('{status}' == 'Active') || ('{status}' == 'Inactive')) { ?>
     <td><a href='projects/change_status/{status}/{id}'>{status}</a></td>
        &lt;?php } else {?&gt;
    <td>{status}</td>
    &lt;?php } ?&gt;

but it always goes to else part even status is Active or Inactive Sad

Kindly guide me What's wrong with this code?
Thanks in advance


Messages In This Thread
comparison condition is not true - by El Forum - 05-24-2009, 08:45 AM
comparison condition is not true - by El Forum - 05-24-2009, 08:49 AM
comparison condition is not true - by El Forum - 05-24-2009, 11:12 AM
comparison condition is not true - by El Forum - 05-24-2009, 11:46 AM
comparison condition is not true - by El Forum - 05-24-2009, 11:55 AM
comparison condition is not true - by El Forum - 05-24-2009, 12:13 PM
comparison condition is not true - by El Forum - 05-25-2009, 07:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB