Check braces brackets etc...
The snippet shown seems okay, post the rest of the code if you can not find the error
Type: Posts; User: jps
Check braces brackets etc...
The snippet shown seems okay, post the rest of the code if you can not find the error