hmark Posted March 30, 2010 Share Posted March 30, 2010 I'm currently using decimal(10,4) and allowing NULL. In addition i'm using round($row[3]). When I do this, I end up getting 0s when I query results. What can I do to avoid this? I've tried different things and tried looking thru archived help and haven't found anything that works. Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/197013-zeros-with-null-values/ Share on other sites More sharing options...
fenway Posted April 3, 2010 Share Posted April 3, 2010 That's PHP, not mysql. Quote Link to comment https://forums.phpfreaks.com/topic/197013-zeros-with-null-values/#findComment-1036436 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.