PDA

View Full Version : Where am i going wrong?


Jay...
03-28-2007, 08:09 PM
Now i have very limited knowledge of PHP, basically im a trying to add a ratio to my postbit with the code...

Ratio: $post[uploads]/$post[downloads]

all that shows is 'Number of uploads'/'number of downloads' it does not actually divide the two numbers shown in [downloads] and [uploads]

Marco van Herwaarden
03-29-2007, 07:09 AM
You can not perform calculations in a template (= HTML).

You would need to create a plugin to do the calculations.

Jay...
03-29-2007, 09:45 AM
ok thanks marco