You even did not read the post till end right?
If you would read dthis post till end, you would recognize, that you are following the bad version of Ahmads 2-provided code-versions.
Read the post till end and then try to find out which one is the better version.
…
…
…
Also please do not bump-up old posts.
Always open your own ones with your own in detail described issue-description.
