Well, since you are catching errors but not printing them, you would not know if there are errors. Put this line in your catch(Exception ex){ } block and tell me if you get any errors:
...
Type: Posts; User: aussiemcgr
Well, since you are catching errors but not printing them, you would not know if there are errors. Put this line in your catch(Exception ex){ } block and tell me if you get any errors:
...
What do you mean by: "it doesn't work"? Are you getting errors or something?