storyboo wrote:Is there a limit to number of if statements you can have in a php file which queries the database?
Nope.
storyboo wrote:I've been using a script for a year and all of a sudden the last if statement wont work:
Well for one, you're lucky (or perhaps unlucky, in this case?) that PHP is a loosely-typed language; otherwise, you'd be getting complaints about comparisons with strings.
'9.90' is a string of 4 characters; 9.90 is a floating point number. Is 'cat' less than 'dog' ? My question doesn't make sense because I'm trying to compare two strings in a (traditionally) numeric way, which is exactly what you're doing.
As for the if() statement, if by "not working" you actually mean "doesn't evaluate to true as expected", then have you tried examining the values to make sure they are as you expect them to be?
If so, show us the values of the variables involved in that if() statement.