3raser Posted February 7, 2010 Share Posted February 7, 2010 I keep running into this SAME problem. $text2 = "rise"; if ($row[changeprice] > 0) { $text2 = "drop"; } It's saying if it's below 0, change the text to drop. But why isn't it doing that? It still keeps it at rising. Quote Link to comment Share on other sites More sharing options...
RussellReal Posted February 7, 2010 Share Posted February 7, 2010 thats saying if its GREATER than zero, set it to drop.. use < for less than Quote Link to comment Share on other sites More sharing options...
3raser Posted February 7, 2010 Author Share Posted February 7, 2010 Oh...I wish they didn't switch those. It's like...opposite. Quote Link to comment Share on other sites More sharing options...
RussellReal Posted February 7, 2010 Share Posted February 7, 2010 they've never switched them.. < is less than > is greater than its the pac-man logic.. pac-man wants to eat the bigger number.. 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.