i'm searching the inet for around 3 days now and i'm stuck at this.
I got a MySQL Database and a php Script, as well as a Game made in UE4. UE4 uses c++.
So now i want to send requests from the c++ game to the php script and that shall interact with the database. For example create an account or login. I also want to pass the mysql query result of the php script to my c++ class. I tried using HttpRequest, but i can't get data from php to c++ with that.
Maybe you can, but i don't understand it at all. What i accomplished by now is that you can send a POST request from the game to the php script and pass variables so that the script uses them to perform the mysql query. But how can i pass data from the php file to c++ now? The response i get is always the whole site (head and body) and i don't know where i could save the query result to pass it to the c++ code.
I'm a full beginner here, so go easy on me. I read so many different posts and blogs that my brain hurts like hell ): I hope someone can tell me how to do this easily or at least give me a hint on what i have to google and what i could use. I don't need a full tutorial, just a name of a library better than the Http.h (if simple HttpRequest cant manage this) would be enough. ): I'm really frustrated...
eXi