Hello. I am programming using PHP and MySQL.
In my database I have a field formatted decimal(5,2) for money (e.g. £4.95).
In php I have made a variable $total to store a total value. However, this $total variable is formatted so £9 is displayed as 9 when I want it to be displayed as 9.00.
Can anyone please tell me how to format the variable?
Many thanks.