Page 1 of 1

Quick help using dollar sign..

Posted: Thu Apr 14, 2011 11:45 am
by nicolasi18
I have a quick question how can I put the dollar sign in front of the numbers?

right now is like this:

12.00 $

'<td onclick="ShowHide(\'sec_'.$prod->serie.'\')" align="right">'.number_format($prod->preco, 2, '.', ',').' $</td>'.

I need this like this:

$12.00

Please help!

Re: Quick help using dollar sign..

Posted: Thu Apr 14, 2011 11:55 am
by social_experiment

Code: Select all

<td onclick="ShowHide(\'sec_'.$prod->serie.'\')" align="right">$ '.number_format($prod->preco, 2, '.', ',').' </td>'.
Are you getting any errors (syntax related) from your current code? Something doesn't look correct in there.

Re: Quick help using dollar sign..

Posted: Thu Apr 14, 2011 12:57 pm
by nicolasi18
You are the best!! thanks it works perfect. :)