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.. Link to comment https://forums.phpfreaks.com/topic/162714-solved-compared-to-0/ 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) Link to comment https://forums.phpfreaks.com/topic/162714-solved-compared-to-0/#findComment-858687 Share on other sites More sharing options...
smerny Posted June 18, 2009 Author Share Posted June 18, 2009 thank you Link to comment https://forums.phpfreaks.com/topic/162714-solved-compared-to-0/#findComment-858689 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. Link to comment https://forums.phpfreaks.com/topic/162714-solved-compared-to-0/#findComment-858690 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.