PHPVAR Help
Posted: Fri 23. Jul 2004, 01:54
From time to time, I would like to get access to some of the fields that are stored in the mysql tables...without making a call. My understanding was that i could use the new tag PHPVAR to get to them. I am having no success. I have checked my brackets and braces...but for some reason i am unsuccessful. Anyone have a working example. Here is what i put as a content part "html" in a page...hoping to get back the field...acat_info
Am i misunderstanding the use of PHPVAR or am i doing something wrong 
Code: Select all
PHPVAR:$my_var returns the value of $my_var<BR><BR>
this is TRY 1:{PHPVAR:$acat_info}
:this end<BR><BR>
this is TRY 2:
{PHPVAR:$GLOBALS['content']['struct'][$GLOBALS['content']['acat_id']['acat_info']]} :this end
