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. Link to comment https://forums.phpfreaks.com/topic/191288-very-weird-problem/ 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 Link to comment https://forums.phpfreaks.com/topic/191288-very-weird-problem/#findComment-1008546 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. Link to comment https://forums.phpfreaks.com/topic/191288-very-weird-problem/#findComment-1008551 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.. Link to comment https://forums.phpfreaks.com/topic/191288-very-weird-problem/#findComment-1008552 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.