Jump to content

format of sql query


flemingmike

Recommended Posts

hi, if i have:

 

$fee=($cost*0.1);

<tr bgcolor='$config[altcolorb]'><td align='left' background='$config[cellbg2]'><b>Cost:</b></td><td align='left' background='$config[cellbg2]'>$cost +$fee </td></tr>

 

how can i make sure $fee is formatted to look like $1.00 instead of just $1 where $cost=$10

Link to comment
https://forums.phpfreaks.com/topic/151549-format-of-sql-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.