Jump to content

decimal type help


MDanz

Recommended Posts

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());

Link to comment
https://forums.phpfreaks.com/topic/202507-decimal-type-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.