With following php code i can get total amount of debit columns from Mysql Database:
Php Code
$total_debit = mysql_query("SELECT SUM(debit) FROM supplier_jv");
$re_t = mysql_fetch_array($total_debit);
$t_d = $re_t['SUM(debit)'];
Suppose.. it’s amount 590185.
So i want to show this amount like: 5,90,185 (should be a coma (,) after 3 integer first and then 2 integer )
How do i do this with php?
1 Answer