If your not getting any errors then you must have error reporting disabled on your server, since it will give you php errors as it stands.
Looks a bit like you copied the code from somewhere and then edited it, and you have removed too much.
Your IF is missing a closing bracket on the condition, and an opening curly bracket for the action.
Also, you have defaulted the active setting to no, so make sure you set that to yes.
|