Re: [PHP] Variable just not Behaving Itself.

2004-08-10 Thread Robby Russell
On Tue, 2004-08-10 at 17:41, Jordi Canals wrote: > Harlequin wrote: > > > I have the following: > > > > [SNIP] > > ... > > $Emp_Status_Rqmt=$row["Emp_Status_Rqmt"]; > >} > >if( $Emp_Status_Rqmt == 'Permanent' ) > >{ > >$UserStatus = 'Permanent'; > >} > >if( $Emp_Status_Rqm

Re: [PHP] Variable just not Behaving Itself.

2004-08-10 Thread Jordi Canals
Harlequin wrote: I have the following: [SNIP] ... $Emp_Status_Rqmt=$row["Emp_Status_Rqmt"]; } if( $Emp_Status_Rqmt == 'Permanent' ) { $UserStatus = 'Permanent'; } if( $Emp_Status_Rqmt == 'Contractor' ) { $UserStatus = 'Contractor'; } else { $UserStatus == 'Flexib

Re: [PHP] Variable just not Behaving Itself.

2004-08-10 Thread Robby Russell
On Tue, 2004-08-10 at 16:36, Harlequin wrote: > I have the following: > > [SNIP] > ... > $Emp_Status_Rqmt=$row["Emp_Status_Rqmt"]; >} >if( $Emp_Status_Rqmt == 'Permanent' ) >{ >$UserStatus = 'Permanent'; >} >if( $Emp_Status_Rqmt == 'Contractor' ) >{ >$UserStatus = '

RE: [PHP] Variable just not Behaving Itself.

2004-08-10 Thread Kevin
Hey, I was looking at your code and should that not be an If - ElseIf - Else structure? The way I read this is it first checks to see if the var is set to 'Permanent' and sets $UserStatus. Then regardless of the previous test it does another test on the $Emp_Status_Rqmt to see if it is 'Contactor'

Re: [PHP] Variable just not Behaving Itself.

2004-08-10 Thread Justin Patrin
On Wed, 11 Aug 2004 00:36:05 +0100, Harlequin <[EMAIL PROTECTED]> wrote: > I have the following: > > [SNIP] > > $Emp_Status_Rqmt=$row["Emp_Status_Rqmt"]; >} >if( $Emp_Status_Rqmt == 'Permanent' ) >{ >$UserStatus = 'Permanent'; >} >if( $Emp_Status_Rqmt == 'Contractor' )

[PHP] Variable just not Behaving Itself.

2004-08-10 Thread Harlequin
I have the following: [SNIP] ... $Emp_Status_Rqmt=$row["Emp_Status_Rqmt"]; } if( $Emp_Status_Rqmt == 'Permanent' ) { $UserStatus = 'Permanent'; } if( $Emp_Status_Rqmt == 'Contractor' ) { $UserStatus = 'Contractor'; } else { $UserStatus == 'Flexible'; } [SNIP]