Code: Select all
<?php echo DoFormatCurrency($row_rsPayment['rental_price'], 2, ',', '.', '£ '); ?>[text]£
79,00[/text]
i want it to show
[text]£ 79,00[/text]
how can this be done?
Moderator: General Moderators
Code: Select all
<?php echo DoFormatCurrency($row_rsPayment['rental_price'], 2, ',', '.', '£ '); ?>sorry itsCelauran wrote:DoFormatCurrency isn't a standard PHP function, so none of us will know what it actually does without seeing the code. You could use money_format() or number_format()
Code: Select all
function DoFormatCurrency($theObject,$NumDigitsAfterDecimal,$DecimalSeparator,$GroupDigits,$CurrencySymbol) {
$currencyFormat=$CurrencySymbol.number_format($theObject,$NumDigitsAfterDecimal,$DecimalSeparator,$GroupDigits);
return ($currencyFormat);
}Missed this.jonnyfortis wrote:its in a table with no cell widths
Code: Select all
white-space: nowrap;[text]nowrap="nowrap"[/text]Celauran wrote:Missed this.jonnyfortis wrote:its in a table with no cell widths
CSS should fix it. Just apply this to the cell's class.Code: Select all
white-space: nowrap;
nowrap is obsolete. Use CSS instead.jonnyfortis wrote:[text]nowrap="nowrap"[/text]
ok thanksCelauran wrote:nowrap is obsolete. Use CSS instead.jonnyfortis wrote:[text]nowrap="nowrap"[/text]