Connect to a online database with the HTML one.

Hello, I want to know how I can record some values like lvl, exp, hp to a online database to not let people cheating.
Im not a expert at coding and I dont know how to do it with rpg maker, I know I cant do directly because javascript is a client-side code and bla bla, but I was reading at internet and it could be made with php and ajax, I saw some tutorials but I dont know how to do it with the rpg maker.
Im building a webbrowser game and I wanted to put some values of my game into a online database.
If I cant do that Im wasting my time building this game.
Thank you
I believe you'd need a server set up to recieve write requests. The server would then write the data of each such request to the database, server-side. I don't know how you'd go about setting up a server like that, though. 😴

Edit: this page might be relevant~
Lets say the game its at my website connected to a database and when someone who´s playing the game gain 50 gold then the script reads it and that +50 gold its add to a table of my database.
I need a server of the game to do that?
cant be done with some php or something?
Or I miss spell what you said.[/QUOTE]

Im thinking something out of the box, Every 30 sec or something a save its made and that file goes to the website files.
And after the files a script read it and write the values I want in the database, but if that file is modified illegaly it gets corrupted or its deleted.
That can be made?
yes, you can do that. there's a plugin called Cloud Manager. it will allow you to do this. you'll need to learn a little programming, but overall it's very simple. it took me about one full day to figure out how it works.

search for cloudManager.js -- the zip includes everything you need to set up a database as well as the plugin for connecting your game to the database.
yes, you can do that. there's a plugin called Cloud Manager. it will allow you to do this. you'll need to learn a little programming, but overall it's very simple. it took me about one full day to figure out how it works.

search for cloudManager.js -- the zip includes everything you need to set up a database as well as the plugin for connecting your game to the database.

Thank you its a nice plugin. I will look around and see what I can do with it.
Thanks for your time.
If I might offer a bit of design feedback about this idea: Consider not doing it unless your game has leaderboards, multiplayer, or is otherwise meant for players to compete against each other somehow. I say this for two major reasons:
  1. What if something goes wrong once your game goes live? You could end up deleting legit saves and that will infuriate players to the point of refunding and leaving salty reviews.
  2. Some of my fondest memories of vintage games involves what would be considered cheating--sticking certain boss/special enemy skills on party members in FFT, for example. By "banning cheating" in a noncompetitive, single player game, you're effectively limiting how players can enjoy it.
So yeah, consider not going that route unless it's absolutely necessary.
@Aesica I know but its very important, Im trying to do something online and I dont want to let cheaters. I want to introduce something new like a crypto automate game, where players gona farming, mining for the time they choose. I even want to create a slot machine on it.
But first I will create the game and then test it out 🙂.

Original thread: https://forums.rpgmakerweb.com/threads/connect-to-a-online-database-with-the-html-one.122811/