RE: [PHP] Still having a problem with IF/ELSE Statement

2003-03-06 Thread Warren Vail
:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 8:02 AM To: Hunter, Jess Cc: PHP Mailing List Subject: Re: [PHP] Still having a problem with IF/ELSE Statement Maybe throw in the code where $status or $Row[status] get initialized. but i would do it like this: if( $status == 'active' ) {

Re: [PHP] Still having a problem with IF/ELSE Statement

2003-03-06 Thread Ray Hunter
Maybe throw in the code where $status or $Row[status] get initialized. but i would do it like this: if( $status == 'active' ) { echo "active line\n"; } else { echo "inactive line\n"; } or if( $Row['status'] == 'active' ) { echo "active line\n"; } else { echo "in

Re: [PHP] Still having a problem with IF/ELSE Statement

2003-03-06 Thread Tom Rogers
Hi, Thursday, March 6, 2003, 10:31:58 PM, you wrote: HJ> I want to tahnk those that responded to my previous post, seems I was doing HJ> this all the wrong way. I am still having an issue with the syntax: HJ> if("$status=='active'"){ HJ> echo("active line\n"); HJ> }else{ HJ> echo("inactive line\

[PHP] Still having a problem with IF/ELSE Statement

2003-03-06 Thread Hunter, Jess
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