[PHP] Comparison Problems with 5.2.5




Hi,

I have runned into a slight annoying problem with my code, that I have never
had before.
Either I have something wrong in my code or PHP 5.2.5 that I user is acting
weird in windows. I have recently installed PHP on my windows machine for
local developement instead of a remote server.

What I try to do is to make an if statement betwean two string numbers.

$_USER['level'] = The level the user has

The $_USER['level'] string is taken from the Database and is "5".

This will not work (I expect this to work since _USER['level'] is 5)
if($_USER['level'] => 5)

This will work (And I expect it to work to)
if($_USER['level'] => 6)

This will work (Not supposed to work since _USER['level'] is 5)
if($_USER['level'] > 5)

--
View this message in context: http://www.nabble.com/Comparison-Problems-with-5.2.5-tp14547671p14547671.html
Sent from the PHP - General mailing list archive at Nabble.com.
.



Relevant Pages

  • Re: connect to mysql
    ... PHP and MySQL on my Windows machine and set up a test ... After I opened the browser and selected the test.php, ...
    (comp.lang.php)
  • Re: error handling issue - try / catch with PHP 5
    ... I have written some PHP code to index the contents of C drive ... on a Windows machine. ... When it gets to certain special folders (fake ... hmmm will read up more on Warnings. ...
    (comp.lang.php)
  • getting php to run as another user?
    ... I need to have my PHP script move uploaded files from the server where the ... a user named "george" or something, who will have the permission to write ... files to the target directories on the windows machine. ... But PHP running as an Apache module runs as user "apache" ...
    (alt.php)
  • Re: error handling issue - try / catch with PHP 5
    ...  I have written some PHP code to index the contents of C drive ... on a Windows machine. ... When it gets to certain special folders (fake ... You could try to define your own error handler to turn PHP errors and ...
    (comp.lang.php)
  • Re: [PHP] Comparison Problems with 5.2.5
    ... On Sun, December 30, 2007 8:34 am, Magnus Anderson wrote: ... Either I have something wrong in my code or PHP 5.2.5 that I user is ... I have recently installed PHP on my windows machine ... View this message in context: ...
    (php.general)