C.O.R.S. Send Data ro Webpage, Need Assistance Please(SOLVED!)


So I have it where my leaderboard scores are saved in a database, and I am loading the scores inside my game. I have my own web server, I’m using https, and have SSL set up right. I allowed administrator rights and all privilege’s to the username I am using in the database so I am sure it’s all set-up right there.

But Where I am having trouble, is when I load the scores it works the first time. Then when I go to another section only have the scores load, then back to the same section that worked before then nothing pops up, only Zero’s.

Does anyone know how to properly set up my timer’s and how to load the info into the text boxes properly? If the scores load the first time fine, why does it not work when the action is repeated elsewhere?

Any advice on this would be helpful. I’ve attached two screenshots to show you how I set up my events.

Thanks in advance.

Gordon Donaldson

Beware I also added this to each of my php files to get it to work on the phone:

header(“Access-Control-Allow-Headers: Authorization, Content-Type”); header(“Access-Control-Allow-Origin: *”); header(‘content-type: application/json; charset=utf-8’);