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

« Next Oldest | Next Newest »

Messages In This Thread
working with numbers - tempo - 01-03-2015, 07:03 AM
RE: working with numbers - ZiNgA BuRgA - 01-03-2015, 06:16 PM
RE: working with numbers - tempo - 01-04-2015, 05:49 AM
RE: working with numbers - ZiNgA BuRgA - 01-05-2015, 09:32 AM
RE: working with numbers - tempo - 01-05-2015, 03:54 PM
RE: working with numbers - ZiNgA BuRgA - 01-09-2015, 10:40 PM
RE: working with numbers - tempo - 01-31-2015, 11:34 PM
RE: working with numbers - ZiNgA BuRgA - 02-01-2015, 12:18 PM
RE: working with numbers - tempo - 02-01-2015, 03:49 PM
RE: working with numbers - ZiNgA BuRgA - 02-01-2015, 10:41 PM
RE: working with numbers - tempo - 02-02-2015 02:00 AM
RE: working with numbers - ZiNgA BuRgA - 02-02-2015, 09:14 AM

 Standard Tools
Forum Jump: