:[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' ) {
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
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\
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
4 matches
Mail list logo