Re: [PHP] Comparison Problems with 5.2.5
- From: heavyccasey@xxxxxxxxx (Casey)
- Date: Sun, 30 Dec 2007 10:50:11 -0800
On Dec 30, 2007 8:04 AM, Silvio Porcellana <sporc@xxxxxx> 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 assigning values in an hash, maybe you
are triggering something strange...)
--
Antinori and Partners - http://www.antinoriandpartners.com
Soluzioni web - da professionisti
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I think it needs to be >= (greater than or equal to) or <= (less than
or equal to).
-Casey
.
- References:
- [PHP] Comparison Problems with 5.2.5
- From: Magnus Anderson
- Re: [PHP] Comparison Problems with 5.2.5
- From: Silvio Porcellana
- [PHP] Comparison Problems with 5.2.5
- Prev by Date: Re: [PHP] Question regarding linking PHP Parser library into my private Http server
- Next by Date: Re: [PHP] script stoped working over christmas ?
- Previous by thread: Re: [PHP] Using PHP to remove certain number of bytes from file
- Next by thread: Re: [PHP] Comparison Problems with 5.2.5
- Index(es):
Relevant Pages
|