11
ghia
Re: Need help on a custom php script
  • 2009/8/19 12:25

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Maybe the empty fields are not NULL, try with adding
le="color: #000000"><?php AND min_rate > 0
to the WHERE clause.
Use number_format() to set the decimals, eg
le="color: #000000"><?php $formatted_number = number_format($number, 2);



12
deka87
Re: Need help on a custom php script
  • 2009/8/19 12:45

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


thats rite ghia. thanks. now it works Quote:
average=0.104
voters=15

Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits