27.04.2018, 00:22
quant = The float in the database
are u sure it's correct? I mean if it is cached from the database.
also, make output and post it for a better vision.
printf("UPDATE drugs SET Quantity = %.1f WHERE ID = %d", oQuantity, did);
are u sure it's correct? I mean if it is cached from the database.
also, make output and post it for a better vision.
printf("UPDATE drugs SET Quantity = %.1f WHERE ID = %d", oQuantity, did);