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
AND min_rate 0
to the WHERE clause.
Use number_format() to set the decimals, eg
$formatted_number number_format($number2);



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

Who's Online

379 user(s) are online (276 user(s) are browsing Support Forums)


Members: 0


Guests: 379


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits