PHPVAR Help

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
kpimichael
Posts: 44
Joined: Mon 29. Dec 2003, 03:29

PHPVAR Help

Post by kpimichael »

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

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
Am i misunderstanding the use of PHPVAR or am i doing something wrong :roll:
Post Reply