PHP and TPL file, variable doesn't work

Reply

Join Date: Dec 2007
Posts: 9
Reputation: mrt.work is an unknown quantity at this point 
Solved Threads: 0
mrt.work mrt.work is offline Offline
Newbie Poster

PHP and TPL file, variable doesn't work

 
0
  #1
Jul 10th, 2008
HI,
I have a tpl file which use the {php}{/php} to excute php file inside it. The problem is that in that tpl file,
  1. $article_title
is a string and i want to set it's value to use in php excutions so it looks like this:
  1. {php}
  2. $var1==$article_title;
  3. {/php}

NOTE: $article_title is the variable set in tpl not PHP
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the PHP Forum


Views: 598 | Replies: 0
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC