[PHP] Comparison Problems with 5.2.5
- From: magnus@xxxxxxxxxxxxx (Magnus Anderson)
- Date: Sun, 30 Dec 2007 06:34:37 -0800 (PST)
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.
.
- Follow-Ups:
- Re: [PHP] Comparison Problems with 5.2.5
- From: "Richard Lynch"
- Re: [PHP] Comparison Problems with 5.2.5
- From: Silvio Porcellana
- Re: [PHP] Comparison Problems with 5.2.5
- Prev by Date: Question regarding linking PHP Parser library into my private Http server
- Next by Date: Re: [PHP] Comparison Problems with 5.2.5
- Previous by thread: Question regarding linking PHP Parser library into my private Http server
- Next by thread: Re: [PHP] Comparison Problems with 5.2.5
- Index(es):
Relevant Pages
|