smerny Posted June 18, 2009 Share Posted June 18, 2009 I have an if statement... if ($userrank == 0) and it seems like even if $userrank == "", it is triggering my if statement... "" and 0 are two very different things in this case.. Quote Link to comment Share on other sites More sharing options...
joel24 Posted June 18, 2009 Share Posted June 18, 2009 change it to if (is_numeric($userrank) && $userrank == 0) Quote Link to comment Share on other sites More sharing options...
smerny Posted June 18, 2009 Author Share Posted June 18, 2009 thank you Quote Link to comment Share on other sites More sharing options...
haku Posted June 18, 2009 Share Posted June 18, 2009 Let's see your code, and the example that is producing this problem. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.