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\n); HJ };

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 inactive

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

2003-03-06 Thread Warren Vail
, 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' ) { echo active line\n; } else