Help me solve this?

Did you give any thought to my comments in the other topic?

I would not expect that code to work on any server that had an up-to-date version of PHP.
You need to update your methods for both future present -proofing and to remove the gaping security holes.

1 Like