Arthur Barton wrote:

> Hi all,
> this post is rather off topic, but i thought that considering the php talk
> at the last meet, someone might have an idea or two
> any of you people out there who still happen to be awake at this
> unfortunate hour (2:15 am ish)...

Ahh yes :)

>
> i have a php(3) statement that sits on a server, grabs some results from
> Flash, & is then *supposed* to display the results in the browser. Problem
> being here; the way the php was written, the if statement doesn't seem to
> parse when the result is "0". after a lot of how-to's etc, my if statement
> looks like...
>

Firstly, what is Score ? A constant ? If it's a variable it needs a \$ else it

wont work. isset()s are rarely used on constants. Or is it indeed "score" for
the purpose of the example ?

It's also important to see how your variable was initialised, there's a
posibility that it was never created.

$score = 0; // nothing will print if this was never set

if (isset($score)) {
// this will print just fine however
}



Regards, Matt


>
> if (isset(Score)) {
> etc
>
> as far as i can tell, the result should now work even when Score=0, however
> now it doesn't seem to work (get parsed) at all????
> would anyone have any idea's.
>
> much appreciated (appologies for spelling/grammar or whatever, its late,
> and i'm tired)
> Arthur
>
> --
> SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
> More Info: http://slug.org.au/lists/listinfo/slug





--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to