I want to create a leaderboard, and therefore users have to create an account (to automatically save their scores and send them to the leaderboard database). It is similar to the system used in Clash Royale, there is a leaderboard where you can see the users with the highest scores (trophies).
I know there are many tutorials on how to add a login/signin system or a leaderboard in C2 using a MySQL database and AJAX, but I have red them all and they are all obsolete. I think the problem is you need to use mysqli instead of mysql, and the code in the PHP is different.
I decided to follow the steps written in this tutorial to create the login system and search the code for the new PHP in other tutorials (outside scirra toutorials) but none of them worked.
In this tutorial on how to create a leaderboard the updated code for the getscores.php was posted in the comments and it works fine, but there is stil the updated savescores.php missing.
Could anybody kindly provide the missing codes or update the obsolete tutorials (most of them are many years old)? Not only for me, because there are many many people having the same problem. It is a very common problem.
Thank you for your help