Search found 4 matches

by tweakbird
Sat Jun 05, 2004 8:17 pm
Forum: PHP - Code
Topic: Help with If...Elseif...
Replies: 6
Views: 584

sweet.....

I found that my problem was there was white space in the $threat, so I had to add trim() do it and that licked the issue. I was also point to use switch to compare the single vars.

Cheers...
by tweakbird
Sat Jun 05, 2004 7:11 pm
Forum: PHP - Code
Topic: Help with If...Elseif...
Replies: 6
Views: 584

I tired that as well before I posted on here for some help..same issue with the above (1st posted code).

Output says ELEVATED Error getting level from dhs.gov .

It see what $threat is, it just won't do the if...endif stuff.. :roll:
by tweakbird
Sat Jun 05, 2004 7:03 pm
Forum: PHP - Code
Topic: Help with If...Elseif...
Replies: 6
Views: 584

I tired === and it didn't work, this is what it shows: ELEVATED Error getting level from dhs.gov The exact output of $threat is ELEVATED or what ever the current status is (LOW, GUARDED, ELEVATED, HIGH, or SEVERE is what will be returned). I have a print at the top of the code just to make sure I am...
by tweakbird
Sat Jun 05, 2004 6:53 pm
Forum: PHP - Code
Topic: Help with If...Elseif...
Replies: 6
Views: 584

Help with If...Elseif...

Hope some of the fellow php scripters can lend me a hand... I'm playing around with displaying the current homeland security threat level, but I am running into issues. I can pull down the xml file, stip it, and then display the current status, but I want to take what the status is and then add some...