two conditions on an if statement

I'm trying to match two conditions in an I statement. If both match then I'd like the code
 $INTUNDER2519999 +=1;  to be executed. Whats wrong with my below code?

if ($TicketPrices >= 25.99 && $TicketPrices <= 200) {
                 $INTUNDER2519999 +=1;
                 }

Open in new window

LVL 1
JPERKS1985Asked:
Who is Participating?
 
Thomas WheelerConnect With a Mentor Commented:
it works for me

$TicketPrices = 50;
$INTUNDER2519999 = 10;
 
if ($TicketPrices >= 25.99 && $TicketPrices <= 200) {
                 $INTUNDER2519999 +=1;
    }
 
print $INTUNDER2519999;
 
 
prints 11

Open in new window

0
 
Thomas WheelerCommented:
what error are you getting?
0
 
JPERKS1985Author Commented:
No error, its just not incrementing when it should.
0
 
Thomas WheelerCommented:
after the if can you print the results to see what they are.
0
All Courses

From novice to tech pro — start learning today.