PDA

View Full Version : Added new database fields...i don't know how to call them...


Mental Stamina
11-22-2001, 05:33 PM
in my "user" table
i added 2 new fields "win" & "loss"

i'm running 2.0.3
i want to simply display these new fields
in my postbits template

thanx to whomever responds to this

Admin
11-22-2001, 05:36 PM
Just use $post[win] and $post[loss].

Mental Stamina
11-22-2001, 11:02 PM
that was outrageously simple

thanx

i also would like to get the win percentages to show
so......i'd have to calculate a total & a win %
is there any particular place in the showthread where i should do those calculations?
or is anywhere fine?

and how would the syntax look?