Re: [PHP] Comparison Problems with 5.2.5

2007-12-30 Thread Richard Lynch
You want >= and not => The => operator doesn't even make any sense in that context, as far as I know... On Sun, December 30, 2007 8:34 am, Magnus Anderson wrote: > > Hi, > > I have runned into a slight annoying problem with my code, that I have > never > had before. > Either I have something wro

Re: [PHP] Comparison Problems with 5.2.5

2007-12-30 Thread Casey
On Dec 30, 2007 8:04 AM, Silvio Porcellana <[EMAIL PROTECTED]> wrote: > Magnus Anderson wrote: > > > > ...snip... > > > > This will not work (I expect this to work since _USER['level'] is 5) > > if($_USER['level'] => 5) > > > > Try > if($_USER['level'] >= 5) > > maybe it helps ('=>' is used when as

Re: [PHP] Comparison Problems with 5.2.5

2007-12-30 Thread Silvio Porcellana
Magnus Anderson wrote: ...snip... This will not work (I expect this to work since _USER['level'] is 5) if($_USER['level'] => 5) Try if($_USER['level'] >= 5) maybe it helps ('=>' is used when assigning values in an hash, maybe you are triggering something strange...) -- Antinori and Partn

[PHP] Comparison Problems with 5.2.5

2007-12-30 Thread Magnus Anderson
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