MDanz Posted May 21, 2010 Share Posted May 21, 2010 these below aren't working. In Mysql the result should show a decimal value, i'm still getting full numbers. $query1= mysql_query("UPDATE Reply SET Negative=Negative+1 WHERE origin=$id-1 and keywords='$search'") or die (mysql_error()); $query2= mysql_query("UPDATE Reply SET Negative=Negative+0.5 WHERE origin=$id and keywords='$search'") or die (mysql_error()); $query3= mysql_query("UPDATE Reply SET Negative=Negative+0.25 WHERE origin=$id+1 and keywords='$search'") or die (mysql_error()); Quote Link to comment https://forums.phpfreaks.com/topic/202507-decimal-type-help/ Share on other sites More sharing options...
Mchl Posted May 21, 2010 Share Posted May 21, 2010 Is this solved (is amrked as such at this time) If not, please paste your table definition Quote Link to comment https://forums.phpfreaks.com/topic/202507-decimal-type-help/#findComment-1061641 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.