Hi,
I have a php script which I connect to succesfully from within my game.
the script run all right and interacts with a mysql server.
I am now struggling to understand how to get a value back from the call to the script.
No need to get complex data, just a char returned by a echo "x" command at the end of the script.
If I run the script via the browser I see the echo string returned in the html page.
I tried to figure out how to do so but I got extremely confused after a dozen attemtps with the following example:
https://docs.yoyogames.com/source/dadiospice/002_reference/asynchronous functions/http_post_string.html
I understand that when I assign a variable to the http_post_command like:
myvar= http_post_string("http://www.newgame.com/game.php", str)
then I will need to check for id, status and result in a ds_map but tthis is where I got lost
Sorry if this has been answred already, I am still confusing after reading all the thread that I could find (I am totally new to html/php and how they return values to callers.
Thanks!
I have a php script which I connect to succesfully from within my game.
the script run all right and interacts with a mysql server.
I am now struggling to understand how to get a value back from the call to the script.
No need to get complex data, just a char returned by a echo "x" command at the end of the script.
If I run the script via the browser I see the echo string returned in the html page.
I tried to figure out how to do so but I got extremely confused after a dozen attemtps with the following example:
https://docs.yoyogames.com/source/dadiospice/002_reference/asynchronous functions/http_post_string.html
I understand that when I assign a variable to the http_post_command like:
myvar= http_post_string("http://www.newgame.com/game.php", str)
then I will need to check for id, status and result in a ds_map but tthis is where I got lost
Sorry if this has been answred already, I am still confusing after reading all the thread that I could find (I am totally new to html/php and how they return values to callers.
Thanks!
Last edited: