I got it - I got it the first time too -
"I put this script in a website bought on one of hosting services."
Does it (your script) work when you host it on XAMPP???
If "yes" then see the answer I have now posted three times...
if 'no', my script does not work on localhost, then we will try to help you.
What don't you get here??? We aren't in the position to figure out why a script on a hosted website is not working, period... We only support XAMPP on localhost or your local network - and - XAMPP is not for production environments