Hi I am using the older version of vshare and have come across a problem.
I am trying to run some custom php code in the template. The following seems to work ok
	PHP Code:
	
if ($smarty.session.USERNAME == $uname) 
 however I need to try and use $smarty.session.USERNAME in an sql query but then it does not work because of the periods's in the variable.
I know php sometimes converts them to underscores but $smarty_session_USERNAME is no good either.
I have tried
	PHP Code:
	
$login = $smarty.session.USERNAME;
$login = $smarty_session_USERNAME 
 Anyone have any ideas how I can use that within {php} tags?
				
			
Bookmarks