Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 working with numbers
tempo Offline
Junior Member
**
Posts: 30
Joined: Aug 2012
Post: #11
RE: working with numbers
...to place PHP expressions in template must use

Code:
<?php
........
?>


am i wrong?

into a template i'm using this code:

Code:
<setvar Z>(float)$threadfields['X']*100/(float)$threadfields['Y'] </setvar>
<td>{$tplvars['Z']}</td>


where is my mistake?

(This post was last modified: 02-02-2015 02:01 AM by tempo.)
02-02-2015 02:00 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #12
RE: working with numbers
http://mybbhacks.zingaburga.com/showthread.php?tid=464

My Blog
02-02-2015 09:14 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: