Re: Variable just not Behaving Itself.
| From: | Justin Patrin | Date: | Tue, 10 Aug 2004 23:37:30 +0000 |
| Subject: | Re: Variable just not Behaving Itself. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193414@lists.php.net to get a copy of this message | ||
On Wed, 11 Aug 2004 00:36:05 +0100, Harlequin
<michael.mason@arraspeople.co.uk> 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 == 'Flexible';
$UserStatus = 'Flexible';
> }
> [SNIP]
>
> which echoes OK until I change the value to something other than Permanent
> or Contractor. It simple echoes resource ID #n
>
> what's wrong with me...? the code I mean...?
>
> --
> -----------------------------
> Michael Mason
> Arras People
> www.arraspeople.co.uk
> -----------------------------
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder
paperCrane --Justin Patrin--