Still having a problem with IF/ELSE Statement
| From: | Hunter, Jess | Date: | Thu, 06 Mar 2003 12:31:58 +0000 |
| Subject: | Still having a problem with IF/ELSE Statement | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-138452@lists.php.net to get a copy of this message | ||
I want to tahnk those that responded to my previous post, seems I was doing
this all the wrong way. I am still having an issue with the syntax:
if("$status=='active'"){
echo("active line\n");
}else{
echo("inactive line\n");
};
When I display an employee record that has the employment status
$Row[status] of active, then the "active line" displays no problem, when I
display an employee record of an inactive employee, I still get the "active
line".
I have also tried to do it this way but to no avail:
if("$Row[status]=='active'"){
echo("active line\n");
}else{
echo("inactive line\n");
};
Not to mention numerous ways of adding/removing/changing double quotes and
single quotes around.
Any and all help would be greatly appreciated
Jess