How do I turn numbers into a money format. I tried using money_format('%i',varible) but it doesnt work. I got that function from the php manual website. is there more I need to know about this function. is there a better one ??? here is how its typed
<?php echo money_format('%i',$product['productPrice']); ?>
Is there a mysql funciton that formats numbers into money value. All i want is to make a number. any number like 1,2,4, 500, 3000, to be formated to something like 1.00,2.00,4.00,500.00,3000.00. and if the decimal places are already placed properly, then it will leave it alone.
Plus I want to put ASCII back into a varible. So when someone submits a form with paragraphs and such, when I out put it back onto the website, the paragraphs will still be there instead of being in one glob.