Jump to content

Insert from mysql with no decimal


neppers

Recommended Posts

I`m trying to make a payment method, but I need to forward the "order_total"-field from my mysql-database without decimals. Now I get f.ex an order_total like this "1679.00". I need it to be "167900". Anyone have an idea?

Sample from the code:
<input type="hidden" name="amount" value="<?php $db->p("order_total") ?>" />
Link to comment
https://forums.phpfreaks.com/topic/3810-insert-from-mysql-with-no-decimal/
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.