-
- 96 Posts
Hi,
Zi helped me with some suggestions but i’m having another problem.
When $_GET[’catid’] is set, it only outputs the number 3...which would be correct if it only outputted that number when $_GET[’catid’] equalled 3, but it’s not. It just keeps outputting that number, even when $_GET[’catid’] isn’t set, which is weird.
So say i have 3 url’s.
index.php?id=4&catid=1, index.php?id=4&catid=2, index.php?id=4&catid=3
When i try to output $_GET[’catid’], all it will output is 3 and not 1 or 2.
Thanks.
How is the code being called? If this is in a snippet, make sure you call the snippet uncached ... [!mySnippet!]
Hope that helps, Garry
Garry Nutting
Senior Developer
MODX, LLC
Email:
[email protected]
Twitter: @garryn
Web: modx.com
-
- 96 Posts
Yes it is a snippet, but I don’t understand what you mean by calling it uncached, i just used the [[snippetname]] to call it.
-
- 96 Posts
ah, ok i see what you mean, it’s working perfectly now ^_^. Thanks.