I can't seem to get this variable to produce any output no matter what why I try it.
Here's the code:
$result_webpage = mysql_query("SELECT webpage_title, webpage_linkname FROM webpage WHERE webpage_pub_id = '$_SESSION[userData][territory_pub_id]'") or die(mysql_error());
What is the correct way to code this '$_SESSION[userData][territory_pub_id]'
I have tried
$SESSION[userData]['territory_pub_id']
'$SESSION[userData][territory_pub_id]'
and other various methods and nothing I try works unless I just hardcode the variable.
Thanks for any input!