My PC is windows but the server is UNIX
I did see this
Note: The function money_format() is only defined if the system has strfmon capabilities. For example, Windows does not, so money_format() is undefined in Windows.
on the PHP.net site - but thought it was referring to the server machine.
57D
. My price is a variable named: $row_cust['price'] and the value comes from a hidden field with the following value <?php echo $row_cust['quantity']*7.50; ?> so when I used money_format the value for cents always showed as .00
I've just tried using
echo sprintf('US %01.2f', $row_cust['price']);
and this did the same - showed the cents as .00
I'd imagine that having it pre-formatted in mySql would be ideal - if it is possible??
🙂