Author

Topic: Blockchain mass send api. SQL data type to use? $5 amazon voucher as a thank you (Read 1019 times)

hero member
Activity: 603
Merit: 500
Oooohh I'm a fool. Just realised I should store in Bigint and just divide by 100000000 to get satoshi! oh well its a learning process Cheesy
legendary
Activity: 2912
Merit: 1060
member
Activity: 109
Merit: 100
just use bigint or int, amount in satoshi

display in btc: sprintf("%.8f",$sat);
legendary
Activity: 2912
Merit: 1060
Id use bigint. The api doesn't care about what you use internally.. Your just sending numbers.

Ps never INSERT anything without http://us1.php.net/mysql_real_escape_string
hero member
Activity: 603
Merit: 500
Jump to: